-
Notifications
You must be signed in to change notification settings - Fork 178
Error with Version 3.0.8 #382
Comments
Is every loader name in your webpack.config.js suffixed with "-loader"? This is a requirement in Webpack 2, and can cause the error you're getting. E.g. loaders: ['ng-annotate', 'awesome-typescript'] Is no longer valid. It must be: loaders: ['ng-annotate-loader', 'awesome-typescript-loader'] |
I have the same problem, the loaders names are correct on my project |
this is what i am getting during compilation since version 3.0.8
|
Same problem here. I double-checked my loader names, Now I cannot get it to build. |
I fixed my problem by having the same case on the |
I am using Windows so case shouldn't matter. It has never been an issue before. This has been working fine for me until just today. I switched to ts-loader and everything works fine. It is slower, but at least I can do my work. |
Same problem. in Windows. Using Webpack 2.2.1, Typescript 2.1.5 awesome-typescript-loader 3.0.8. I realized this error was the result of a require statement referencing a file with incorrect casting in a case-insensitive OS (like Windows). It would be great if the error message was more precise. Can it check for mismatches in file casing? |
Looks like this is fixed in version 3.1.2. |
No Everything works with combination: With Typescript 2.2.1 and ts-loader, no problem. |
I am using webpack 2.2.1 if it helps to identify the issue |
Issue resolved with Awesome 3.1.2 and Typescript 2.2.1. |
No I am wrong. |
I am running Webpack 2.2.1, Typescript 2.2.1, and Awesome Typescript Loader 3.1.2 with no issues. Try deleting your .awcache folder. I've found sometimes that fixes some issues with Awesome Typescript Loader. |
Where is .awcache folder? |
i dont use the cache, and still experience the issue. Thus i'm stuck at version 3.0.7 as my last stable version typescript: 2.2.1 |
I also do not use cache nor have .awcache directory. |
Does not work with ATL 3.0.7 for me. |
i am using the option I also found out, that if i remove |
now #372 references the issue #320 that is about empty d.ts files. And indeed i do have an empty If i remove the empty file, i can successfully build with latest ATL version |
That could be why I am not having issues now. These are my options in tsconfig:
|
Just had this issue, more or less out of the blue (it wasn't there last time project was built on this dev machine), with webpack 2.2.1, ATL 3.0.8, TS 2.2.1. In order to fix it, in the following order, we:
(so, not sure yet if adding watchpack was really needed). EDIT uninstalling and installing again webpack "naturally" lead to picking the latest watchpack 1.x.x available, 1.3.1 OT: @vincentw56 could not get a complete list of properties available for awesomeTypescriptLoaderOptions. I kinda remember that forkChecker has been recently made obsolete, with webpack 2.2.x I guess. Do you know about any reference on available options? Thanks |
In tsconfig.json, I configured the following: Then I am able use ATL 3.2.1 and Typescript 2.2.1 Thanks to everyone who interacted and helped. |
Only this also works: In tsconfig.json, I configured the following: Then I am able use ATL 3.2.1 and Typescript 2.2.2 |
Same here, works using only |
I am using V 3.0.8 with Typescript 2.1.1
I am getting error:
Module Build Failed : Error: Final loader didn't return a Buffer or String
The same error throws with any V 3 and Typescript 2.1,x
It works with V 2.2.4 and Typescript 2.0.10
ts-loader does not have problem with Typescript 2.2.1
Can this be fixed please.
Note - I have installed all loaders advised in different forums.
The text was updated successfully, but these errors were encountered: