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

Error: Unable to resolve module ./index from ``: on windows #2

Open
alzalabany opened this issue Jan 15, 2020 · 2 comments
Open

Error: Unable to resolve module ./index from ``: on windows #2

alzalabany opened this issue Jan 15, 2020 · 2 comments

Comments

@alzalabany
Copy link

Steps to reproduce:

git clone ...
cd monorepo-example;
yarn;
yarn workspace @monorepo-example/mobileApp android;

it will run as expected then::

Looking for JS files in
C:\Users\ZalaBanY\monorepo-example

Loading dependency graph, done.

Error: Unable to resolve module `./index` from ``:

None of these files exist:
  * index(.native|.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
@alzalabany
Copy link
Author

to solve this, i had to go to package folder. and rerun react-native start manually.

yet another error came up.

error: bundling failed: Error: Unable to resolve module `./../../../../../../AppData/Local/Yarn/Data/global/node_modules/react-transform-hmr/lib/index.js` from .
...`

i tried installing it locally using `yarn add react-transform-hmr --d` or --reset-cache yet not working !.

@praveen-jha-by
Copy link

Any luck resolving this issue? I downloaded the code on my mac and got the same error.

Loading dependency graph, done.
Error: Unable to resolve module `./index` from ``: 

None of these files exist:
  * index(.native|.ios.js|.native.js|.js|.ios.json|.native.json|.json|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx)

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

No branches or pull requests

2 participants