-
Notifications
You must be signed in to change notification settings - Fork 178
Error: The only supported extensions are '.ts', '.tsx', '.d.ts' #129
Comments
Should be fixed in v0.17.0. |
It works! Great thanks |
I also had the same issue (when I've updated a js file the awesome-typescript-loader wanted to parse it), and now it's gone. Thanks! |
I have this error using v1.1.1
|
+1 - v1.1.1 (used in angular2-webpack-starter) has this issue |
+1 |
@s-panferov Seeing this locally too; It may be a regression issue potentially? |
I have this problem with |
Happens as soon as I have:
Can this issue be reopened? |
Same here, happening with typescript@next. |
Yup, same happening for me with typescript@next |
Same here typescript@next. I really want to use typescript@next as it supports object spread operator... |
I switched (temporarily?) to ts-loader, it works without any issues, and with typescript@next there's now no reason to use ts+babel (since you can target es5 with async/await). |
add {
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": false,
"noImplicitAny": true,
"suppressImplicitAnyIndexErrors": true,
"allowJs": true
}
} |
Hi, i have strange error in watch mode:
ERROR in [default] File '<some file path>.js' has unsupported extension. The only supported extensions are '.ts', '.tsx', '.d.ts'.
But i can't give some example of the error because it is highly depend on my dev environment:
gulp watch
which runs webpack in watch modeWhen I run solution first time I don't have generated files yet, i need to run project build in VSTO, but
gulp watch
is set on project open and it means that it runs before typings generating and it fails because it can't resolve the generated definitions modules. So I set watcher for the folder where the definitions will appear and when all of them resolved i rungulp watch
again and first build is ok, but right after that another build is appeared and which shows that error on each.ts
file in my projectI understand that it is hard to answer why this error is appeared but maybe you have some thoughts how to investigate error? I thought that i call watch more than one time but testing via
console.log
showed that the function was run only once. One more thing is thatts-loader
has no error in this case.gulpfile.js
The text was updated successfully, but these errors were encountered: