Export fields seem to be not working #235
Replies: 3 comments
-
Actually, it seems to be the build order, is there a way to explicitly set it? |
Beta Was this translation helpful? Give feedback.
-
Build order gets determined by |
Beta Was this translation helpful? Give feedback.
-
Yep that sounds like an issue with the build order. There's an example in this repo you can reference. To define the build order declare your workspace dependencies as if they're an npm module, but instead of a version you can use |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
When referencing a workspace that uses the package.json exports property, and I run
yarn build
(tsc
), the imports cannot be resolved:Cannot find module 'modulewithexportfields' or its corresponding type declarations.
When running tsc in the project, everything works as expected
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Everything should work the same way as you run the build command in the packages folder.
Beta Was this translation helpful? Give feedback.
All reactions