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
Support for react-native-webworked in Next.js 4, but now throws an error when upgrading to Next.js 5. From my research, this would appear to be related to an issue that has been closed in necolas/react-native-web#364.
I have searched the issues of this repository and believe that this is not a duplicate.
Expected Behavior
The Next.js server should successfully compile and load the application without errors.
Current Behavior
The Next.js server throws an error and failed to compile.
ERROR Failed to compile with 1 errors
This dependency was not found:
* react-dom/unstable-native-dependencies in ./node_modules/react-native-web/dist/modules/injectResponderEventPlugin/index.js
To install it, you can run: npm install --save react-dom/unstable-native-dependencies
Steps to Reproduce (for bugs)
Spin up Next.js 5 project
yarn add react-native-web
yarn add -D babel-plugin-react-native-web
Add .babelrc configured for the plugin installed in previous step
Support for react-native-web worked in Next.js 4, but now throws an error when upgrading to Next.js 5. From my research, this would appear to be related to an issue that has been closed in necolas/react-native-web#364.
Expected Behavior
The Next.js server should successfully compile and load the application without errors.
Current Behavior
The Next.js server throws an error and failed to compile.
Steps to Reproduce (for bugs)
yarn add react-native-web
yarn add -D babel-plugin-react-native-web
.babelrc
configured for the plugin installed in previous stepreact-native-web
(see slightly different example below to match latest version ofreact-native-web
)yarn start
Context
The Next.js application is unable to compile.
Your Environment
Custom Document
The text was updated successfully, but these errors were encountered: