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

Expo Metro Server can't resolve my packages #9090

Open
1 task done
Chuazz opened this issue Sep 1, 2024 · 5 comments
Open
1 task done

Expo Metro Server can't resolve my packages #9090

Chuazz opened this issue Sep 1, 2024 · 5 comments
Labels
kind: bug Something isn't working

Comments

@Chuazz
Copy link

Chuazz commented Sep 1, 2024

Verify canary release

  • I verified that the issue exists in the latest Turborepo canary release.

Link to code that reproduces this issue

https://github.com/Chuazz/instagram-clone

What package manager are you using / does the bug impact?

Yarn v1

What operating system are you using?

Windows

Which canary version will you have in your reproduction?

[email protected]

Describe the Bug

i followed #4771 to fix typescript error but it return me "Unable resolve module ..." when i prebuild with expo.
image
image

Expected Behavior

metro server can resolve my package

To Reproduce

yarn && yarn dev:mobile

Additional context

No response

@Chuazz Chuazz added kind: bug Something isn't working needs: triage New issues get this label. Remove it after triage labels Sep 1, 2024
@chris-olszewski
Copy link
Member

Does the issue occur if turbo isn't used? e.g. cd apps/mobile && yarn dev:mobile

@chris-olszewski chris-olszewski removed the needs: triage New issues get this label. Remove it after triage label Oct 22, 2024
@Chuazz
Copy link
Author

Chuazz commented Oct 23, 2024

Does the issue occur if turbo isn't used? e.g. cd apps/mobile && yarn dev:mobile

i will try it and reply you later

@Chuazz
Copy link
Author

Chuazz commented Oct 23, 2024

Does the issue occur if turbo isn't used? e.g. cd apps/mobile && yarn dev:mobile

still not working
image

@Chuazz
Copy link
Author

Chuazz commented Nov 8, 2024

Hi, i found that i must define main and types fields in package.json of each package
image

@Chuazz Chuazz closed this as completed Nov 8, 2024
@Chuazz Chuazz reopened this Nov 9, 2024
@Chuazz
Copy link
Author

Chuazz commented Nov 9, 2024

it only work for index.js not work for custom another path like ./query/index.js
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants