Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: hide ExperimentalWarning #901

Merged
merged 1 commit into from
Sep 14, 2023
Merged

fix: hide ExperimentalWarning #901

merged 1 commit into from
Sep 14, 2023

Conversation

kanadgupta
Copy link
Member

🧰 Changes

As I feared, the current version in next yields this whenever you run an rdme CLI command:

CleanShot 2023-09-14 at 18 06 07@2x

This was surprisingly not straightforward (it was buried in the comments: nodejs/node#10802 (comment)) and I don't love this solution, but I confirmed that adding a NODE_OPTIONS env variable to the entry shebang should fix this.

🧬 QA & Testing

I npm link'd locally and confirmed the warning goes away:

CleanShot 2023-09-14 at 18 09 24@2x

@kanadgupta kanadgupta added the bug Something isn't working label Sep 14, 2023
@kanadgupta kanadgupta added this to the v9 milestone Sep 14, 2023
@@ -1,3 +1,5 @@
#!/usr/bin/env node
#!/usr/bin/env NODE_OPTIONS=--no-warnings node
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does that other process.env.NODE_NO_WARNINGS = 1; solution work too? I'm not sure which one is cleaner.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope, doesn't work 😕

@kanadgupta kanadgupta merged commit f9b5679 into next Sep 14, 2023
8 checks passed
@kanadgupta kanadgupta deleted the fix/no-warnings branch September 14, 2023 23:15
@kanadgupta kanadgupta restored the fix/no-warnings branch September 14, 2023 23:15
kanadgupta pushed a commit that referenced this pull request Sep 14, 2023
# [9.0.0-next.2](v9.0.0-next.1...v9.0.0-next.2) (2023-09-14)

### Bug Fixes

* hide `ExperimentalWarning` ([#901](#901)) ([f9b5679](f9b5679))

[skip ci]
@kanadgupta kanadgupta mentioned this pull request Sep 15, 2023
23 tasks
@kanadgupta kanadgupta deleted the fix/no-warnings branch September 19, 2023 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants