Comments (3)
Seems to be a compatibility issue with react-native-web. It is not ready for react 16 yet. Look at the note here.
- Replace your package.json with the content in the gist below:
https://gist.github.com/amoghbanta/d0bf78ff4e29100a311f9ab2987cf9c6 - delete your node_modules:
rm -rf node_modules
- install new dependencies:
yarn install or npm i
- finally run the project and also delete the cached content
yarn run web --reset-cache
Do tell me if this works for you. I'll update the dependencies and add a note in readme.
from re-start.
Great, thanks for the fast reply @amoghbanta
I've followed your instructions (as well as removing the yarn.lock
file) and got this error:
Failed to compile.
Error in ./~/react-native-web/dist/index.js
Module build failed: ReferenceError: Unknown plugin "transform-react-remove-prop-types" specified in "/Users/User/dev/testing/react-native/r10/node_modules/react-native-web/package.json" at 0, attempted to resolve relative to "/Users/User/dev/testing/react-native/r10/node_modules/react-native-web"
at Array.map (native)
@ ./index.web.js 1:164-187
After adding babel-plugin-transform-react-remove-prop-types
as dependency the above error was resolved and the demo runs smoothly now. 🎉
Thanks a lot!
from re-start.
I had the same issues with the fresh install. I'm currently trying to play with React 16 which was installed anyway as the dependency of [email protected], so I have upgraded react-dom too. Have hit all these 3 errors, the final one being somethign wrong with the config in my understanding. So I had to add it to my dev dep too but that shouldn't be needed: necolas/react-native-web#607
from re-start.
Related Issues (20)
- Question: Is it possible to build a system keyboard for android/io with react-everywhere? HOT 2
- Changes in App.js is not compiling HOT 16
- `react-native-web` version is too old HOT 2
- update react-native-web HOT 1
- undefined is not an object (evaluating in xxx.xxx) in safari. HOT 4
- UI library for cross platform HOT 1
- Add support for React Native DOM platform
- Add support for Carlo
- Jest encountered an unexpected token HOT 1
- Jest tests taking longer than they should HOT 2
- Is this project still active? HOT 4
- Electron issues HOT 15
- Add command to convert current project
- Babel-Jest and Jest Versions Incompatible w/ React-Scripts Dependency-Requirements HOT 2
- Specific development only for electron platform like web/android/ios HOT 6
- Everything saying depreciated
- Add support for `react-native-desktop` and/or `proton-native`
- Initial setup failing
- Comment: Nothing works any more. HOT 1
- I have created and added new files to a new branch in Git, so those files are not compiled in VS code.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from re-start.