You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running npx expo start --web, using the new @expo/cli package, throws a webpack error: ValidationError: Invalid options object related to version mismatch between webpack@4 and webpack@5.
The workaround, for some time, has been to run npx expo-cli start --web which uses the legacy expo-cli package, which prints a somewhat imposing warning message:
Expected Behavior
ability to start expo web apps using standard @expo/cli tool.
> NX Report complete - copy this into the issue template
Node : 16.15.1
OS : darwin x64
yarn : 1.22.19
nx : 15.6.3
@nrwl/angular : Not Found
@nrwl/cypress : Not Found
@nrwl/detox : 15.6.3
@nrwl/devkit : 15.6.3
@nrwl/esbuild : Not Found
@nrwl/eslint-plugin-nx : 15.6.3
@nrwl/expo : 15.6.3
@nrwl/express : Not Found
@nrwl/jest : 15.6.3
@nrwl/js : 15.6.3
@nrwl/linter : 15.6.3
@nrwl/nest : Not Found
@nrwl/next : Not Found
@nrwl/node : Not Found
@nrwl/nx-cloud : Not Found
@nrwl/nx-plugin : Not Found
@nrwl/react : 15.6.3
@nrwl/react-native : Not Found
@nrwl/rollup : Not Found
@nrwl/schematics : Not Found
@nrwl/storybook : Not Found
@nrwl/web : Not Found
@nrwl/webpack : 15.6.3
@nrwl/workspace : 15.6.3
@nrwl/vite : Not Found
typescript : 4.8.4
---------------------------------------
Local workspace plugins:
---------------------------------------
Community plugins:
✨ Done in 0.74s.
Failure Logs
ValidationError: Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
- configuration.node should be one of these:
false| object { __dirname?, __filename?, global? }
-> Include polyfills or mocks for various node stuff.
Details:
* configuration.node has an unknown property 'module'. These properties are valid:
object { __dirname?, __filename?, global? }
-> Options object for node compatibility features.
* configuration.node has an unknown property 'dgram'. These properties are valid:
object { __dirname?, __filename?, global? }
-> Options object for node compatibility features.
* configuration.node has an unknown property 'dns'. These properties are valid:
object { __dirname?, __filename?, global? }
-> Options object for node compatibility features.
* configuration.node has an unknown property 'fs'. These properties are valid:
object { __dirname?, __filename?, global? }
-> Options object for node compatibility features.
* configuration.node has an unknown property 'http2'. These properties are valid:
object { __dirname?, __filename?, global? }
-> Options object for node compatibility features.
* configuration.node has an unknown property 'net'. These properties are valid:
object { __dirname?, __filename?, global? }
-> Options object for node compatibility features.
* configuration.node has an unknown property 'tls'. These properties are valid:
object { __dirname?, __filename?, global? }
-> Options object for node compatibility features.
* configuration.node has an unknown property 'child_process'. These properties are valid:
object { __dirname?, __filename?, global? }
-> Options object for node compatibility features.
Additional Information
Here's a workaround which adds a yarn resolution for webpack@4, and removes the legacy expo-cli.
Current Behavior
Running
npx expo start --web
, using the new@expo/cli
package, throws a webpack error:ValidationError: Invalid options object
related to version mismatch betweenwebpack@4
andwebpack@5
.The workaround, for some time, has been to run
npx expo-cli start --web
which uses the legacyexpo-cli
package, which prints a somewhat imposing warning message:Expected Behavior
ability to start expo web apps using standard
@expo/cli
tool.GitHub Repo
leggomuhgreggo/nx-issue-expo-babel#2
Steps to Reproduce
repro/new-cli-not-working
branch, yarn installyarn nx run repro-app:run-web
Nx Report
Failure Logs
Additional Information
Here's a workaround which adds a yarn resolution for webpack@4, and removes the legacy expo-cli.
Some additional context in this Nx slack thread
Thanks!
The text was updated successfully, but these errors were encountered: