vercel / turborepo

Build system optimized for JavaScript and TypeScript, written in Rust
https://turbo.build/repo/docs
MIT License
26.45k stars 1.84k forks source link

Expo Metro Server can't resolve my packages #9090

Open Chuazz opened 2 months ago

Chuazz commented 2 months ago

Verify 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?

turbo@2.0.14

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

chris-olszewski commented 1 month ago

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

Chuazz commented 1 month ago

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 commented 1 month ago

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

still not working image

Chuazz commented 2 weeks ago

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

Chuazz commented 2 weeks ago

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