expo / expo-webpack-integrations

Packages used to integrate Expo in Webpack-based projects.
8 stars 1 forks source link

ValidationError: webpack Dev Server Invalid Options #28

Closed sergeushenecz closed 7 months ago

sergeushenecz commented 7 months ago

Summary

I updated @expo/webpack-config from 0.17.4 to 19.0.1 and i see this errors

When i want to call a command npx expo start --web

Environment

expo-env-info 1.2.0 environment info: System: OS: macOS 14.0 Shell: 5.9 - /bin/zsh Binaries: Node: 20.10.0 - ~/.nvm/versions/node/v20.10.0/bin/node npm: 10.2.3 - ~/.nvm/versions/node/v20.10.0/bin/npm Managers: CocoaPods: 1.11.2 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: DriverKit 23.2, iOS 17.2, macOS 14.2, tvOS 17.2, visionOS 1.0, watchOS 10.2 Android SDK: API Levels: 26, 32, 33 Build Tools: 32.0.0, 32.1.0, 33.0.0, 33.0.0, 34.0.0 System Images: android-25 | Google APIs ARM 64 v8a, android-26 | ARM 64 v8a, android-26 | Google APIs ARM 64 v8a, android-26 | Google APIs Intel x86_64 Atom, android-30 | Google APIs ARM 64 v8a, android-30 | Google APIs Intel x86 Atom, android-30 | Google Play Intel x86 Atom, android-30 | Google APIs ATD ARM 64 v8a, android-31 | Google APIs ARM 64 v8a, android-32 | Google Play ARM 64 v8a, android-33 | Google Play ARM 64 v8a IDEs: Android Studio: 2022.3 AI-223.8836.35.2231.10811636 Xcode: 15.2/15C500b - /usr/bin/xcodebuild npmPackages: @expo/webpack-config: 19.0.1 => 19.0.1 expo: 50.0.3 => 50.0.3 react: 18.2.0 => 18.2.0 react-dom: 18.2.0 => 18.2.0 react-native: 0.73.2 => 0.73.2 react-native-web: 0.19.10 => 0.19.10 npmGlobalPackages: eas-cli: 7.0.0 Expo Workflow: managed

Please specify your device/emulator/simulator platform, model and version

Macbook Pro on M1 chip.

Error output

ValidationError: webpack Dev Server Invalid Options

options should NOT have additional properties options should NOT have additional properties options should NOT have additional properties options should NOT have additional properties options should NOT have additional properties

Reproducible demo or steps to reproduce from a blank project

I can't share project link.

sergeushenecz commented 7 months ago

Issue was in incorrect webpack-dev-server version. Removed node-modules and install again and this error got away.