-
-
Notifications
You must be signed in to change notification settings - Fork 431
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
Got errors while compiling typescript using webpack 4.0 via gulp #728
Comments
I'm afraid there's no real information there that helps me to help you! It could be worth you taking a look at one of the examples that I've ported to webpack 4: https://github.com/TypeStrong/ts-loader/tree/master/examples/vanilla Are you sure all your webpack packages are webpack 4 related? |
I upgraded all packages. |
I don't, no. TBH it's only one day since the release. It may be the maintainer hasn't had chance to release yet |
I found this shama/webpack-stream#180 |
Compilation with webpack 3 works well, but upgrading to webpack 4 produces following errors.
ts-loader is upgraded to 4.0.0.
Error: test.ts
Module build failed: TypeError: Cannot read property 'afterCompile' of undefined
at successfulTypeScriptInstance (node_modules\ts-loader\dist\instances.js:147:28)
at Object.getTypeScriptInstance (node_modules\ts-loader\dist\instances.js:48:12)
at Object.loader (node_modules\ts-loader\dist\index.js:16:41)
@ multi ./test./test2
Module build failed: TypeError: Cannot set property 'tsLoaderDefinitionFileVersions' of undefined
at getEmit (node_modules\ts-loader\dist\index.js:202:61)
at successLoader (node_modules\ts-loader\dist\index.js:34:11)
at Object.loader (node_modules\ts-loader\dist\index.js:21:12)
@ multi ./src/content/content
The text was updated successfully, but these errors were encountered: