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
Setup a react native web project using the Expo SDK 50 and use webpack to export the web build. You will need to specify a static filename under the config with:
config.output.filename = 'static/js/foo.js?v=[hash]'
The text was updated successfully, but these errors were encountered:
That being said, file outputs will likely still collide on the disk itself. There is no query parameter in the local file system, hence I wouldn't recommend using ?v=[hash] to avoid collision. Instead, you could try using static/js/foo.[hash].js, which shouldn't collide locally.
Summary
After I've upgraded to Expo SDK 50 I can't build web anymore with my webpack config.
The version of @expo/webpack-config increased from
"0.17.4"
to"^19.0.0"
and with Version 19 it doesn't build anymore showing the following error:In my webpack.config.js file I'll need to setup like this and specify a static name for my output.filename:
Before that worked with the v parameter and the [hash] notation.
What platform(s) does this occur on?
Web
SDK Version
Expo SDK 50
Environment
System:
OS: macOS 13.1
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 20.10.0 - /usr/local/bin/node
Yarn: 1.22.19 - /opt/homebrew/bin/yarn
npm: 9.5.1 - /opt/homebrew/bin/npm
Watchman: 2022.01.10.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.12.1 - /Users/arbnorraci/.rvm/gems/ruby-3.0.0/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.4, iOS 16.4, macOS 13.3, tvOS 16.4, watchOS 9.4
IDEs:
Android Studio: 2021.2 AI-212.5712.43.2112.8512546
Xcode: 14.3.1/14E300c - /usr/bin/xcodebuild
npmPackages:
@expo/webpack-config: ^19.0.0 => 19.0.1
expo: ^50.0.0 => 50.0.17
react: 18.2.0 => 18.2.0
react-dom: 18.2.0 => 18.2.0
react-native: 0.73.6 => 0.73.6
react-native-web: ~0.19.6 => 0.19.11
npmGlobalPackages:
eas-cli: 7.8.4
expo-cli: 6.3.10
Expo Workflow: managed
Minimal reproducible example
Setup a react native web project using the Expo SDK 50 and use webpack to export the web build. You will need to specify a static filename under the config with:
config.output.filename = 'static/js/foo.js?v=[hash]'
The text was updated successfully, but these errors were encountered: