We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ts-loader works with yarn 3 + pnp + workspaces + typescript references
Link: #1145 (comment)
Fail:
https://github.com/DiFuks/ts-references
yarn tsc - working yarn ts-node - working yarn webpack:babel-loader - working yarn webpack:ts-loader - not working :(
yarn tsc
yarn ts-node
yarn webpack:babel-loader
yarn webpack:ts-loader
Module not found: Error: Can't resolve './showLib' in '/Users/difuks/PhpstormProjects/ts-references/entries/submodule/dist'
At the same time, with such an edit, everything starts to work. But in this case main uses the uncompiled version of submodule
main
submodule
Information about various build variations is stored here: https://github.com/DiFuks/ts-references/blob/master/entries/main/src/showLib.ts#L7
This workaround also works fine
With nodeLinker: node-modules in .yarnrc.yml things get a little better, but relative imports still don't work (../../submodule)
.yarnrc.yml
With symlinks: true the situation returns to the one that was in the "master" branch
symlinks: true
The text was updated successfully, but these errors were encountered:
If you'd like to look into this I'll happily take a look at a pull request.
Sorry, something went wrong.
I removed js processing from ts-loader and everything worked as expected. As I understand it, this is the expected behavior: #465
No branches or pull requests
Expected Behaviour
ts-loader works with yarn 3 + pnp + workspaces + typescript references
Actual Behaviour
Link: #1145 (comment)
Fail:
Location of a Minimal Repository that Demonstrates the Issue.
https://github.com/DiFuks/ts-references
yarn tsc
- workingyarn ts-node
- workingyarn webpack:babel-loader
- workingyarn webpack:ts-loader
- not working :(Module not found: Error: Can't resolve './showLib' in '/Users/difuks/PhpstormProjects/ts-references/entries/submodule/dist'
At the same time, with such an edit, everything starts to work. But in this case
main
uses the uncompiled version ofsubmodule
Information about various build variations is stored here: https://github.com/DiFuks/ts-references/blob/master/entries/main/src/showLib.ts#L7
This workaround also works fine
With nodeLinker: node-modules in
.yarnrc.yml
things get a little better, but relative imports still don't work (../../submodule)With
symlinks: true
the situation returns to the one that was in the "master" branchThe text was updated successfully, but these errors were encountered: