Skip to content
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

Closed
NN--- opened this issue Feb 26, 2018 · 4 comments
Closed

Got errors while compiling typescript using webpack 4.0 via gulp #728

NN--- opened this issue Feb 26, 2018 · 4 comments

Comments

@NN---
Copy link

NN--- commented Feb 26, 2018

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

@johnnyreilly
Copy link
Member

johnnyreilly commented Feb 26, 2018

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?

@NN---
Copy link
Author

NN--- commented Feb 26, 2018

I upgraded all packages.
It could be gulp webpack that makes problem.
Do you have sample with gulp ?

@johnnyreilly
Copy link
Member

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

@NN---
Copy link
Author

NN--- commented Feb 26, 2018

I found this shama/webpack-stream#180
Hopefully it will be soon resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants