-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when adding react-native-web to an existing react-native app #1234
Comments
Something is wrong with your babel/webpack setup. Maybe it's trying to load |
@necolas I got the webpack config from the instructions. Shouldn't following the instructions be enough for this to work? |
As is mentioned:
You still have to configure webpack yourself to compile the relevant files. I have no idea which version of all the package's you're using either. So it's best to refer to the webpack documentation and Google your compiler errors. |
OK, thanks! |
Were you able fix this issue ? |
same issue, and how to fix it |
Just add
Because documentation is several years behind. |
Hi @talaikis I am able to build the project successfully but I don't see the dist/bundle.web.js are created. Neither browser got launched any help would be appreciated. |
hi every one , the first i was using package react-native-web and then i was using Hooks in my project . code in my project i come from Viet Nam, i hope every one will support me thanks |
I created a react-native app, by doing
react-native init ReactNativeWeb
.Then, I followed the instructions here, to add react-native-web to it.
I also added an
index.web.js
file under the root folder of my app. Here's what the file looks like:Here's my
webpack.config.js
file:And, here's what I have in the
.bablerc
file:But, when I try to run this with the following command, I get the error below.
Error:
The text was updated successfully, but these errors were encountered: