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

Expo Example Fails with ValidationError in Webpack Configuration #49

Open
GeoBradDev opened this issue Nov 16, 2024 · 0 comments
Open

Comments

@GeoBradDev
Copy link

I am trying to use this package in a project, but I cannot get it to work. I cloned the Expo example from the repository and followed the setup instructions. However, when I try to run the project, I encounter the following error:

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.

Steps to Reproduce
Clone the repository and navigate to the Expo example:

git clone https://github.com/teovillanueva/react-native-web-maps.git

cd example

npm install

expo start --web

Expected Behavior
The Expo example should start without errors and display the expected output.

Actual Behavior
The build fails with the ValidationError related to an invalid Webpack configuration.

Environment
Expo Version: 48.0.0
Node.js Version: v22.9.0
npm Version: 10.8.3
Operating System: Linux

Additional Notes
I suspect it may be related to the Webpack configuration for Node compatibility in the Expo example. Any help would be appreciated!

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

No branches or pull requests

1 participant