-
-
Notifications
You must be signed in to change notification settings - Fork 433
Error with using allowJs and importing Javascript file #171
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
Comments
There is a bug in ts-loader. Your entry file has to be always a *.ts file, otherwise it won't work even when I registered an issue already: #163 |
Thanks @tqmukas Closing this as a duplicate. |
@jbrantly Actually, I'm pretty sure this is a different issue since I walked him through it. When there's no out file or out directory, the TypeScript compiler is erroring because the |
Whoops. I didn't actually triage in depth myself. Thanks! |
@blakeembrey @jbrantly there is another way to solve this, see microsoft/TypeScript#7363 |
@s-panferov Thanks a bunch for the tip! |
So, is the "right" way to solve this issue to have ts-loader use the |
Actually, unless I'm missing something, with |
@thomasboyt, hm, this option works quite well in |
@s-panferov @thomasboyt I've just tried setting it in
|
This should be fixed with release 0.9.3 |
Using the following example repository.
https://github.com/raybooysen/ts-loader-example
If you
npm install
and then runwebpack
, webpack will output the following error:I don't understand why this is happening. If, in Webpack, I write TS files that only import TS files, then there are no errors and typescript is not emitting any files anywhere.
Is this a misunderstanding on my part?
_UPDATE_
If I add, to my tsconfig file
"outDir": "./RANDOM"
, then everything works, but there is never a folder called RANDOM created.My TSConfig is as follows:
webpack.config.js
The text was updated successfully, but these errors were encountered: