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

Webpack validation error(Incorrect API Schema) #40

Open
Sunnigen opened this issue Feb 4, 2024 · 0 comments
Open

Webpack validation error(Incorrect API Schema) #40

Sunnigen opened this issue Feb 4, 2024 · 0 comments

Comments

@Sunnigen
Copy link

Sunnigen commented Feb 4, 2024

Upon cloning repo and performing yarn, then yarn example start, lastly pressing the "W" key. I get the following:

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.
    at validate (/Users/sunnigen/react-native-web-maps/node_modules/webpack/node_modules/schema-utils/dist/validate.js:191:11)
    at validateSchema (/Users/sunnigen/react-native-web-maps/node_modules/webpack/lib/validateSchema.js:78:2)
    at create (/Users/sunnigen/react-native-web-maps/node_modules/webpack/lib/webpack.js:119:24)
    at webpack (/Users/sunnigen/react-native-web-maps/node_modules/webpack/lib/webpack.js:167:32)
    at f (/Users/sunnigen/react-native-web-maps/node_modules/webpack/lib/index.js:73:16)
    at WebpackBundlerDevServer.startImplementationAsync (/Users/sunnigen/react-native-web-maps/node_modules/@expo/cli/build/src/start/server/webpack/WebpackBundlerDevServer.js:208:27)
    at async WebpackBundlerDevServer.startAsync (/Users/sunnigen/react-native-web-maps/node_modules/@expo/cli/build/src/start/server/BundlerDevServer.js:89:24)
    at async DevServerManager.startAsync (/Users/sunnigen/react-native-web-maps/node_modules/@expo/cli/build/src/start/server/DevServerManager.js:136:13)
    at async KeyPressHandler.onPressAsync [as onPress] (/Users/sunnigen/react-native-web-maps/node_modules/@expo/cli/build/src/start/interface/startInterface.js:183:25)
    at async KeyPressHandler.handleKeypress (/Users/sunnigen/react-native-web-maps/node_modules/@expo/cli/build/src/start/interface/KeyPressHandler.js:43:17)

I suspect that this is an incorrect version for webpack problem(Currently using @expo/[email protected]).

Currently using:

@teovilla/[email protected] /Users/sunnigen/react-native-web-maps
├── @babel/[email protected]
├── @commitlint/[email protected]
├── @react-native-community/[email protected]
├── @release-it/[email protected]
├─┬ @teovilla/[email protected] -> ./packages/react-native-web-maps
│ ├── @react-google-maps/[email protected]
│ ├── @testing-library/[email protected]
│ ├── @testing-library/[email protected]
│ ├── @types/[email protected]
│ ├── @types/[email protected]
│ ├── @types/[email protected]
│ ├── @types/[email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └── [email protected] deduped
├── @types/[email protected]
├── [email protected]
├─┬ [email protected] -> ./docs
│ ├── @docusaurus/[email protected]
│ ├── @docusaurus/[email protected]
│ ├── @docusaurus/[email protected]
│ ├── @mdx-js/[email protected]
│ ├── @tsconfig/[email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ └── [email protected] deduped
├── [email protected]
├── [email protected]
├── [email protected]
├─┬ [email protected] -> ./example
│ ├── @babel/[email protected]
│ ├── @expo/[email protected]
│ ├── @types/[email protected] deduped
│ ├── @types/[email protected] deduped
│ ├── [email protected]
│ ├── [email protected] deduped
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected] -> ./node_modules/expo
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ ├── [email protected]
│ ├── [email protected] -> ./node_modules/react-native
│ ├── [email protected] deduped
│ └── [email protected] deduped
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]

When checking global packages:

/Users/sunnigen/.nvm/versions/node/v18.19.0/lib
├── [email protected]
└── [email protected]
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