Skip to content

TypeError: Cannot set property 'tsLoaderFileVersion' of undefined #340

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

Closed
quentincaffeino opened this issue Jul 2, 2018 · 3 comments
Closed

Comments

@quentincaffeino
Copy link

Compilation with TS enabled fails with this error:

 ERROR  Failed to compile with 1 errors

 error  in ./somefile.ts

Module build failed: TypeError: Cannot set property 'tsLoaderFileVersion' of undefined
    at successLoader (/var/www/html/node_modules/ts-loader/dist/index.js:49:54)
    at Object.loader (/var/www/html/node_modules/ts-loader/dist/index.js:21:12)

Found only one similar issue on github and it says that latest ts-loader doesn't support webpack <4.
So how about an upgrade then?

@quentincaffeino
Copy link
Author

Ok, I found that you have an open PR.

@Lyrkan
Copy link
Collaborator

Lyrkan commented Jul 2, 2018

Hello @quentincaffeino,

There already is a PR related to the Webpack 4 update (#324), but since this version deprecates/introduces a lot of things it takes a bit of time to do it right.

In the meantime you should be able to use an old version of the ts-loader without any issue.

@quentincaffeino
Copy link
Author

Thanks

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