Export fields seem to be not working #235
Unanswered
timonmasberg
asked this question in
Q&A
Replies: 3 comments
|
Actually, it seems to be the build order, is there a way to explicitly set it? |
0 replies
Build order gets determined by |
0 replies
|
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 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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.
All reactions