-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[NodeJS 17 or later] “npm run dev”, “npm start”, and “npm run deploy” throw exception #4861
Comments
https://github.com/mozilla/hubs/blob/52f293ed7f65329386adc50cbd192807166c83a5/scripts/deploy.js#L44-L49 buildEnv.BUILD_VERSION = `1.0.0.${version}`;
buildEnv.ITA_SERVER = "";
buildEnv.POSTGREST_SERVER = "";
buildEnv.CONFIGURABLE_SERVICES = "janus-gateway,reticulum,hubs,spoke";
// Workaround for npm run deploy failing on NodeJS 17
// https://github.com/mozilla/hubs/issues/4861
buildEnv.NODE_OPTIONS = "--openssl-legacy-provider";
const env = Object.assign(process.env, buildEnv); |
This problem also occurred with |
Where should i define NODE_OPTIONS = "--openssl-legacy-provider" for |
@msalafia I wrote a script file that calls webpack-dev-server in the spawn() function to inject the environment variable. |
I getting this |
I am guessing these two sub repos need to be updated? Any advice to building locally? https://github.com/MozillaReality/aframe Is anyone working on these two repos? |
This should now be fixed with #5619 as we are now using node 16.16.0 |
Description
When I run
npm run deploy
on NodeJS17, it throws an exception.To Reproduce
Steps to reproduce the behavior:
git checkout hubs-cloud
(52f293e)npm ci
npm run login
npm run deploy
Expected behavior
Deployment is completed successfully.
Hardware
Additional context
I uninstalled NodeJS 17 and installed NodeJS 16, and the deployment completed successfully.
This may be caused by depending on an older version of webpack.
webpack/webpack#14532
┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: