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
lerna yarn workspaces and typescript project reference #65
Comments
You may want to take a look at this example. |
@jonaskello Actually that's the one I'm following along 😄 the only difference is that in the NOT working:
WORKING:
Do you have idea why is that? |
You are mixing js and ts execution contexts here. If you are executing If you are executing If you don't need the compiled js files and using
and |
That makes sense, thank you for explaining. For now I guess I will just use |
I have this sample repo branch
tsconfig-paths-issue
https://github.com/jaimesangcap/lerna-ts-monorepo/tree/tsconfig-paths-issueusing lerna, yarn workspaces and typescript project references but it does not seem to work.
It cannot resolve the relative path of the module with error:
to reproduce:
npx lerna bootstrap
at project roottsc -b
TS_NODE_PROJECT=tsconfig.settings.json node -r tsconfig-paths/register packages/api/lib/index.js
then error above should show
The text was updated successfully, but these errors were encountered: