teovillanueva / react-native-web-maps

Cross platform maps for react & react-native πŸ—Ί
https://teovillanueva.github.io/react-native-web-maps/
MIT License
54 stars 14 forks source link

Webpack validation error(Incorrect API Schema) #40

Open Sunnigen opened 5 months ago

Sunnigen commented 5 months ago

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/webpack-config@18.1.4).

Currently using:

@teovilla/react-native-web-maps-root@0.1.0 /Users/sunnigen/react-native-web-maps
β”œβ”€β”€ @babel/eslint-parser@7.23.10
β”œβ”€β”€ @commitlint/config-conventional@17.8.1
β”œβ”€β”€ @react-native-community/eslint-config@3.2.0
β”œβ”€β”€ @release-it/conventional-changelog@5.1.1
β”œβ”€β”¬ @teovilla/react-native-web-maps@0.9.4 -> ./packages/react-native-web-maps
β”‚ β”œβ”€β”€ @react-google-maps/api@2.19.2
β”‚ β”œβ”€β”€ @testing-library/jest-dom@5.17.0
β”‚ β”œβ”€β”€ @testing-library/react@12.1.5
β”‚ β”œβ”€β”€ @types/geojson@7946.0.14
β”‚ β”œβ”€β”€ @types/react-native@0.70.19
β”‚ β”œβ”€β”€ @types/react@18.0.38
β”‚ β”œβ”€β”€ @types/supercluster@7.1.3
β”‚ β”œβ”€β”€ expo-location@15.1.1
β”‚ β”œβ”€β”€ jest-environment-jsdom@28.1.3
β”‚ β”œβ”€β”€ jest-expo@49.0.0
β”‚ β”œβ”€β”€ jest@29.7.0
β”‚ β”œβ”€β”€ nodemon@2.0.22
β”‚ β”œβ”€β”€ react-dom@18.2.0
β”‚ β”œβ”€β”€ react-native-builder-bob@0.18.3
β”‚ β”œβ”€β”€ react-native-maps@1.3.2
β”‚ β”œβ”€β”€ react-native@0.71.7
β”‚ β”œβ”€β”€ react@18.2.0
β”‚ β”œβ”€β”€ release-it@15.11.0
β”‚ β”œβ”€β”€ supercluster@7.1.5
β”‚ └── typescript@4.9.5 deduped
β”œβ”€β”€ @types/jest@28.1.8
β”œβ”€β”€ commitlint@17.8.1
β”œβ”€β”¬ docs@0.0.0 -> ./docs
β”‚ β”œβ”€β”€ @docusaurus/core@2.0.0-beta.21
β”‚ β”œβ”€β”€ @docusaurus/module-type-aliases@2.0.0-beta.21
β”‚ β”œβ”€β”€ @docusaurus/preset-classic@2.0.0-beta.21
β”‚ β”œβ”€β”€ @mdx-js/react@1.6.22
β”‚ β”œβ”€β”€ @tsconfig/docusaurus@1.0.7
β”‚ β”œβ”€β”€ clsx@1.2.1
β”‚ β”œβ”€β”€ prism-react-renderer@1.3.5
β”‚ β”œβ”€β”€ react-dom@18.2.0 deduped
β”‚ β”œβ”€β”€ react@18.2.0 deduped
β”‚ └── typescript@4.9.5 deduped
β”œβ”€β”€ eslint-config-prettier@8.10.0
β”œβ”€β”€ eslint-plugin-prettier@4.2.1
β”œβ”€β”€ eslint@8.56.0
β”œβ”€β”¬ example@1.0.0 -> ./example
β”‚ β”œβ”€β”€ @babel/core@7.23.9
β”‚ β”œβ”€β”€ @expo/webpack-config@18.1.4
β”‚ β”œβ”€β”€ @types/react-native@0.70.19 deduped
β”‚ β”œβ”€β”€ @types/react@18.0.38 deduped
β”‚ β”œβ”€β”€ babel-plugin-inline-dotenv@1.7.0
β”‚ β”œβ”€β”€ expo-location@15.1.1 deduped
β”‚ β”œβ”€β”€ expo-status-bar@1.4.4
β”‚ β”œβ”€β”€ expo-yarn-workspaces@2.3.2
β”‚ β”œβ”€β”€ expo@48.0.21 -> ./node_modules/expo
β”‚ β”œβ”€β”€ react-dom@18.2.0 deduped
β”‚ β”œβ”€β”€ react-native-maps@1.3.2 deduped
β”‚ β”œβ”€β”€ react-native-web@0.18.12
β”‚ β”œβ”€β”€ react-native@0.71.14 -> ./node_modules/react-native
β”‚ β”œβ”€β”€ react@18.2.0 deduped
β”‚ └── typescript@4.9.5 deduped
β”œβ”€β”€ husky@8.0.3
β”œβ”€β”€ lint-staged@13.3.0
β”œβ”€β”€ prettier@2.8.8
β”œβ”€β”€ react-native@0.71.14
β”œβ”€β”€ turbo@1.12.2
└── typescript@4.9.5

When checking global packages:

/Users/sunnigen/.nvm/versions/node/v18.19.0/lib
β”œβ”€β”€ corepack@0.22.0
└── npm@10.2.3