-
-
Notifications
You must be signed in to change notification settings - Fork 431
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
Error when using npm linked dependency #134
Comments
There is some more information about this here: |
@andreialecu Thanks for the extra info. I'll be taking a look into this shortly. |
I believe I've fixed this in v0.8.0, but would be great if you could let me know if it works on your setup. |
I'm hitting this problem using ts-loader 0.8.2 (with webpack 1.13.1 and typescript 1.8.10). I'm brand new to TypeScript so might be user error. I have two projects:
Inside images.ts I have
If I stop symlinking and instead copy foolib over, everything works fine
And here my webapp works as expected. |
When trying to import a module from a dependency that is linked by npm, the typescript compiler fails to load that file. I don't know if this is a typescript issue or a ts-loader issue.
My setup:
The project named
project
below in the stacktrace depends onmy-dependency
. Now when I installmy-dependency
vianpm install my-dependency
everything works fine.But because I want to work on both projects at the same time I link
my-dependency
vianpm link ../my-dependency
. This creates the correct symlinks but when I try to bundle my project with webpack the following error is thrown.This error does not appear if I copy the whole
my-dependency
directory to my project's node_modules directory.ts-loader version: 0.7.2
typescript version: 1.7.5
webpack version: 1.12.9
Note: I already used the fix that is suggested in the webpack documentation. It resolved the issues with requiring the loader itself but the issue below remains. Even though the file that the Compiler can't find exists.
Stacktrace:
The text was updated successfully, but these errors were encountered: