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

addNohoistAliases() problem with React Native for Web #16

Open
alxroyer opened this issue Sep 1, 2022 · 0 comments
Open

addNohoistAliases() problem with React Native for Web #16

alxroyer opened this issue Sep 1, 2022 · 0 comments

Comments

@alxroyer
Copy link

alxroyer commented Sep 1, 2022

While following https://mmazzarolo.com/blog/2021-09-22-running-react-native-everywhere-web/,

I had to comment the addNohoistAliases() call in my craco.config.js file,

otherwise I got the following error:

ERROR in ./src/index.js 4:0-26
Module not found: Error: You attempted to import ...\packages\web\node_modules\react which falls outside of the project src/ directory. Relative imports outside of src/ are not supported.
You can either move it inside src/, or add a symlink to it from project's node_modules/.

Configuration:

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

1 participant