Skip to content
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

Cannot find module 'babel-preset-react-native' #1519

Closed
arshidkv12 opened this issue Jan 6, 2020 · 8 comments
Closed

Cannot find module 'babel-preset-react-native' #1519

arshidkv12 opened this issue Jan 6, 2020 · 8 comments

Comments

@arshidkv12
Copy link

``ERROR in ./index.web.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: Cannot find module 'babel-preset-react-native' from '/Users/arshid/Desktop/test/MyNewAApp'

  • If you want to resolve "react-native", use "module:react-native"``
@necolas
Copy link
Owner

necolas commented Jan 8, 2020

Looks like a misconfiguration or failure to install the module in your project

@necolas necolas closed this as completed Jan 8, 2020
@GIAVINH2010
Copy link

GIAVINH2010 commented Apr 17, 2020

``ERROR in ./index.web.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: Cannot find module 'babel-preset-react-native' from '/Users/arshid/Desktop/test/MyNewAApp'

  • If you want to resolve "react-native", use "module:react-native"``

I meet the same error when setting react-native-web for current react native

  • webpack.config.js

image

  • index.web.js

image

  • babel.config.js

image

@Preethyp
Copy link

@GIAVINH2010 I'm facing the same issue. Have you found any solution?

@GIAVINH2010
Copy link

@GIAVINH2010 I'm facing the same issue. Have you found any solution?

Not yet. I'm still looking for it.

@arshidkv12
Copy link
Author

arshidkv12 commented Apr 18, 2020 via email

@Flora-Ht
Copy link

Same issue, has any solution been found yet? D:

@alyatwa
Copy link

alyatwa commented Sep 19, 2020

this solution might work!
#1257 (comment)

@glennposadas
Copy link

Any updates? @GIAVINH2010 would you like to share your findings? I have yet to try @alyatwa 's suggestion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants