-
-
Notifications
You must be signed in to change notification settings - Fork 428
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
Does not work with typescript 1.5-beta #14
Comments
There is a typescript-1.5 branch where I've done most of the work to get stuff working with TS 1.5. I need to do an NPM push but just haven't gotten to it yet. The only thing left is ts.config support. I'll try to get it out soon. I'm not sure why ts-jsx-loader wouldn't work with another TS loader. There's nothing special ts-loader does with regards to ts-jsx-loader (or vice-versa). |
I tried your TS1.5 branch. This seems to have similar "File not found" errors in Windows as the other loader with TS 1.5.
yet, index.ts is there
Contents
|
I just published v0.4.0. I didn't see your message here until after I published. It seems there might be a bug somewhere with Windows? I'll take a look. |
Yes, I can confirm the false "File not found" errors persist in the v0.4.0 (current master). |
Btw, you might want to look this s-panferov/awesome-typescript-loader#9 — I fixed it in that plugin at the last message, simply changing "" to "/", but with this plugin they are already "/" so I'm not sure what is the problem yet. |
I just tried a medium-sized TypeScript app I have on a Windows machine and it compiled fine. It's similar to your app in certain ways (using forward slashes for require() paths). Would it be possible to put an entire working example up on GitHub somewhere? |
Yes I'll put it up shortly, but it has something to do with tsconfig.json file, if I rename it, it starts to work again. |
Just guessing here, but I have something you could try. Try adding If that still doesn't work, additionally add it here: https://github.com/jbrantly/ts-loader/blob/master/index.ts#L127-L128 |
Whoops, that second location was supposed to be here: https://github.com/jbrantly/ts-loader/blob/master/index.ts#L137-L138 |
It actually comes with simplest example: webpack.config.js
and index.ts
tsconfig.json
|
Hey, that worked.
|
Which location? Just the first or both? |
Directly in the js file Only that position |
Now I tried with a larger project, it still gives a some unnormalized error:
Maybe it's required in two places. I'm also in here: https://gitter.im/TypeStrong/atom-typescript lot's of other typescript peeps there. |
All of the issues brought up in this issue are now resolved as of v0.4.2 which has been published to NPM. |
I tried to upgrade the package.json and installing a new typescript in the ts-loader, but it didn't work just by doing that. For instance I get this:
I also tried this: https://github.com/s-panferov/awesome-typescript-loader but apparently it doesn't work with your ts-jsx-loader.
Fun times with TS and JS, lots of breaking stuff at the moment.
The text was updated successfully, but these errors were encountered: