rusackas opened a new pull request, #25628: URL: https://github.com/apache/superset/pull/25628
…g it from docs <!--- Please write the PR title following the conventions at https://www.conventionalcommits.org/en/v1.0.0/ Example: fix(dashboard): load charts correctly --> ### SUMMARY When running `npm run build` I would get this error: ``` throw new Error("You must provide the URL of lib/mappings.wasm by calling " + ^ Error: You must provide the URL of lib/mappings.wasm by calling SourceMapConsumer.initialize({ 'lib/mappings.wasm': ... }) before using SourceMapConsumer at readWasm (/Users/evan/GitHub/superset/superset-frontend/node_modules/react-hot-loader/node_modules/source-map/lib/read-wasm.js:8:13) at wasm (/Users/evan/GitHub/superset/superset-frontend/node_modules/react-hot-loader/node_modules/source-map/lib/wasm.js:25:16) at /Users/evan/GitHub/superset/superset-frontend/node_modules/react-hot-loader/node_modules/source-map/lib/source-map-consumer.js:264:14 Node.js v18.16.1 ``` When troubleshooting, I found a helpful note in the docs: > If this type of error comes while building assets(i.e using above commands): > > ```bash > Error: You must provide the URL of lib/mappings.wasm by calling SourceMapConsumer.initialize > ``` > > Then put this: > > ```bash > export NODE_OPTIONS=--no-experimental-fetch > ``` I'm _assuming_ that nobody _needs_ the `experimental-fetch` option enabled, so rather than letting users hit this error and go looking for the fix, let's just add the fix to the webpack build scripts in `package.json` ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF <!--- Skip this if not applicable --> n/a ### TESTING INSTRUCTIONS <!--- Required! What steps can be taken to manually verify the changes? --> run all three build methods and make sure they don't bomb out :) ### ADDITIONAL INFORMATION <!--- Check any relevant boxes with "x" --> <!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue --> - [ ] Has associated issue: - [ ] Required feature flags: - [ ] Changes UI - [ ] Includes DB Migration (follow approval process in [SIP-59](https://github.com/apache/superset/issues/13351)) - [ ] Migration is atomic, supports rollback & is backwards-compatible - [ ] Confirm DB migration upgrade and downgrade tested - [ ] Runtime estimates and downtime expectations provided - [ ] Introduces new feature or API - [ ] Removes existing feature or API -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
