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

Error with gulp rebuild #13683

Closed
agriffard opened this issue May 11, 2023 · 6 comments · Fixed by #13790
Closed

Error with gulp rebuild #13683

agriffard opened this issue May 11, 2023 · 6 comments · Fixed by #13790
Milestone

Comments

@agriffard
Copy link
Member

For a few days, I am having an error when I execute gulp rebuild:

[22:08:20] 'rebuild-assets' errored after 6.75 s
[22:08:20] Error: You must provide the URL of lib/mappings.wasm by calling SourceMapConsumer.initialize({ 'lib/mappings.wasm': ... }) before using SourceMapConsumer
    at readWasm (D:\Orchard\OrchardCore\node_modules\gulp-typescript\node_modules\source-map\lib\read-wasm.js:8:13)
    at wasm (D:\Orchard\OrchardCore\node_modules\gulp-typescript\node_modules\source-map\lib\wasm.js:25:16)
    at D:\Orchard\OrchardCore\node_modules\gulp-typescript\node_modules\source-map\lib\source-map-consumer.js:264:14
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[22:08:20] 'rebuild' errored after 6.76 s

In order to make it work, I need to execute this command before the gulp rebuild:

set NODE_OPTIONS=--no-experimental-fetch

@hishamco
Copy link
Member

hishamco commented May 12, 2023

I'm also get an error when I build from VS

Screenshot 2023-05-13 001353

@agriffard any idea how I can resolve this?

@sebastienros sebastienros added this to the 1.7 milestone May 18, 2023
@MikeAlhayek
Copy link
Member

@agriffard I don't have any issue running gulp rebuild

I am using Node v18.6.0, npm version 9.6.5. You may want to try deleting your node_modules

@sebastienros
Copy link
Member

I followed the instructions here and it doesn't work: I can't run gulp rebuild

Probably because gulp is not correctly installed when doing npm install.

@agriffard
Copy link
Member Author

Same error after deleting node_modules, reinstalling and rebuilding with node v20.1

@hishamco
Copy link
Member

Node & node_modules made me crazy all the time :)

@MikeAlhayek
Copy link
Member

All seems to be needed is to install source-map into the project. The PR seems to have fixed this issue.

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

Successfully merging a pull request may close this issue.

4 participants