-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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: npx webpack make: *** [Makefile:699: public/js/index.js] Error -… #15465
Conversation
Ah, this could be a issue with Node's ESM resolution. Wich node version were you encountering this? Perhaps 12? Because I think I only tested this on 14 and 15. |
fwiw I ran into this exact error yesterday. If this fix is more permanent, that's great. 🙂 |
@jolheiser good to know. Our minimum Node version is 12.17.0 so we should either require the higher version that fixed these resolutions or make them compatible with 12.17.0. I will check later if we have other code that would need such treatment as well. |
Looks like 12.20 is the version with the fix:
|
I think we can go with this fix for broader node compatibilty. Happy to approve after the suggestion above is merged. I see that build scripts suffer a similar issue under node 12, will send a PR for those as well. |
Can someone with push rights merge above suggestion so I can approve? :) |
Co-authored-by: silverwind <me@silverwind.io>
does this need backporting? |
no, esm is only on master. |
🚀 |
when I execute
TAGS="bindata" make build
to build gitea, it shows:npx webpack make: *** [Makefile:699: public/js/index.js] Error -1073741819