Using Next.js with Expo for Web fails with error #4195
Comments
This answer helped me |
Thx @aleksandr-senichev . I've tried that solution. It works, how ever a new error came out instead: Have you experienced this issue? |
@aleksandr-senichev It's sooooo strange.. I did the same thing and it simply can't work......:( |
@expo/next-adapter@3.1.20 is still not working with next 12 |
Temporary patch:
}, {
supportsFontLoading: false,
// webpack5: webpack5 && webpack5 !== false,
webpack5: true
});
|
You don't need patch-package for that. If you check out that line you commented out, it indicates that you can pass in |
for some strange reason when I tried it, it didn't work. |
I made it... by adding "webpack5: true".........
This config is mentioned in the Manual setup section. However enabling webpack5 explicitly is not mentioned there. Hope it helps. |
@kbrandwijk Thanks for pointing this out. It works... |
next-adapter supports Next 11+, so it can't make that assumption automatically. |
Lifesaver answer. Can confirm this is work |
Summary
I've followed the instructions in Add Next.js to Expo projects. However with
yarn next dev
, the app failed to run and reported error.PS. This issue has actually been mentioned by others in a conversation in expo/expo.
expo/expo#14971 (comment)
Environment
Expo CLI 5.0.3 environment info:
System:
OS: macOS 11.4
Shell: 5.8 - /bin/zsh
Binaries:
Node: 17.3.0 - /usr/local/bin/node
Yarn: 3.1.1 - /usr/local/bin/yarn
npm: 8.3.0 - /usr/local/bin/npm
Managers:
CocoaPods: 1.10.1 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.2, iOS 15.2, macOS 12.1, tvOS 15.2, watchOS 8.3
IDEs:
Android Studio: 4.1 AI-201.8743.12.41.7042882
Xcode: 13.2.1/13C100 - /usr/bin/xcodebuild
npmGlobalPackages:
expo-cli: 5.0.3
Expo Workflow: managed
Please specify your device/emulator/simulator platform, model and version
macOS Version 11.4 / Chrome Version 97.0.4692.99
Error output
Reproducible demo or steps to reproduce from a blank project
yarn next dev
The text was updated successfully, but these errors were encountered: