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

(node:23021) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time (Use node --trace-warnings ... to show where the warning was created) 0.2.12 #240

Open
rockmandash opened this issue Jan 2, 2025 · 1 comment

Comments

@rockmandash
Copy link

wangzhiyong@wangzhiyongdeMacBook-Pro ~ % repomix --version
(node:23021) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
0.2.12
wangzhiyong@wangzhiyongdeMacBook-Pro ~ % 

Everytime I type repomix --version this annoying error message shows up.

@roooxnode
Copy link

A simple workaround that worked for me was setting the NODE_OPTIONS environment variable to disable the experimental warning:

Windows (Powershell)

$env:NODE_OPTIONS="--disable-warning=ExperimentalWarning"
repomix

Alternatively, on Linux or macOS:

export NODE_OPTIONS="--disable-warning=ExperimentalWarning"
repomix

@rockmandash
This suppresses the warning whenever you run repomix. I hope it helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants