Open alveshelio opened 6 years ago
@alveshelio upgrading your package seems to fix the problem, beware that the fix is not stable:
"awesome-typescript-loader": "^5.0.0-1",
@serbanghita upgrading to 5.0.0-1
does not work for me. ts-loader
works great with hot reloading though.
@riley-steele-parsons good to know! I didn't want to switch the ts plugin. I'm not having issues with hot-reloading yet with this version, I'm using React with TypeScript.
Upgraded to 5.0.0.1-1 fixed this issue for me, it's faster than ts-loader on my end (even when ts-loader was used with cache and thread-loader)
@serbanghita You're a wizard, stable or not it's still working for me
@serbanghita Upgrading to "awesome-typescript-loader": "^5.2.0" works for me. I used to use awesome-typescript-loader v2.x.x and latest webpack version(v4.17.1) and I had this issue. I think you must have version of webpack and awesome-typescript-loader compatible.
Hi guys,
I'm having issues with awesome-typescript-loader on both versions 3.5.0 and 4.0.1 on a project I have a project that I'm trying to upgrade to Webpack 4.0.2.
Whenever I make a change to a file and Webpack recompiles I get this error:
/myproject/node_modules/awesome-typescript-loader/src/instance.ts:73 if (!compiler._tsInstances) { ^ TypeError: Cannot read property '_tsInstances' of undefined
This is my webpack.config.js file:
The part oneOf: [...] was taken from create-react-app webpack.config.dev.js file
I don't know if it's a problem with awesome-typescript-loader or with my webpack.settings.js file. I've tested with ts-linter 4.0.1 and it recompiles with no problem when I make modifications to a file.