-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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: npm run dev-server error resolved #23702
fix: npm run dev-server error resolved #23702
Conversation
Codecov Report
@@ Coverage Diff @@
## master #23702 +/- ##
==========================================
+ Coverage 68.09% 68.11% +0.01%
==========================================
Files 1922 1938 +16
Lines 74056 74973 +917
Branches 8104 8141 +37
==========================================
+ Hits 50431 51068 +637
- Misses 21550 21826 +276
- Partials 2075 2079 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 14 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@lilykuang @michael-s-molina @villebro @rusackas @eschutho @geido i have added one change to solve one error that was coming while running npm run dev-server, to run superset-frontend. Please review. |
When you say "PCs" do you mean Windows machines? I haven't run into this on Mac, so I'm trying to understand the nature of the error, so I can better understand why this change is needed. |
I tried on linux machines. |
@Abhishek-kumar-samsung can you add this environment variable to your local/dev/production machines instead as an option? It may be a more flexible option here, in case the rest of the application uses these fetch commands, which I did find some in a quick code search. Maybe we can add a note in CONTRIBUTING.md for anyone who runs into this issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for capturing this for the sake of others!
This error was coming with me, and 3-4 other pc's in which i tried to setup.
Error: You must provide the URL of lib/mappings.wasm by calling SourceMapConsumer.initialize({ 'lib/mappings.wasm': ... }) before using SourceMapConsumer at readWasm (/home/test/superset_setup/superset/superset-frontend/node_modules/react-hot-loader/node_modules/source-map/lib/read-wasm.js:8:13) at wasm (/home/test/superset_setup/superset/superset-frontend/node_modules/react-hot-loader/node_modules/source-map/lib/wasm.js:25:16) at /home/test/superset_setup/superset/superset-frontend/node_modules/react-hot-loader/node_modules/source-map/lib/source-map-consumer.js:264:14
How to reproduce:
npm run dev-server
, then above error will come.Above error was also resolved by doing this:
export NODE_OPTIONS=--no-experimental-fetch
But i thought it is better to put in code.