TypeError: Cannot set property 'tsLoaderFileVersion' of undefined
See original GitHub issueExpected Behaviour
Build to work when happypackmode is not set
Actual Behaviour
Transpilation fails with following error message
ERROR in ./somefile.ts
Module build failed: TypeError: Cannot set property 'tsLoaderFileVersion' of undefined
at successLoader (C:\sources\gitttl\gsk\MeetingWorkspace\node_modules\ts-loader\dist\index.js:47:54)
at Object.loader (C:\sources\gitttl\gsk\MeetingWorkspace\node_modules\ts-loader\dist\index.js:21:12)
Steps to Reproduce the Problem
Have a project with webpack 3, ts-loader@latest, and happypackmode not set.
Location of a Minimal Repository that Demonstrates the Issue.
Issue Analytics
- State:
- Created 6 years ago
- Comments:14 (5 by maintainers)
Top Results From Across the Web
JavaScript - cannot set property of undefined - Stack Overflow
I get the following error: Uncaught TypeError: Cannot set property 'greeting' of undefined. I'm trying to do something similar to an associative array....
Read more >TypeError: Cannot set property 'phone' of undefined - Treehouse
I have checked several times for typos. I keep getting the following error: "TypeError: Cannot set property 'phone' of undefined at Object.< ...
Read more >typeError: Cannot set property 'innerText' of null - WordPress.org
I get JS error: typeError: Cannot set property 'innerText' of null when I try. Tried to disable plugins but didn't help…. The page...
Read more >Error "Uncaught TypeError: Cannot set property 'value' of ...
It was perfectly working and now it does not work. The code has not changed at all. I have not touched the project...
Read more >Cannot set property 'privateKey' of undefined - Box Support
I use the commend box folders:get 0 -vI got this error, but the private.pem exists in the path.Can you help me with the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Same here, Webpack 3.8.1, I had to revert back to
v3.3.1
in order to get this resolved.Also note that ts-loader v4 and above does not support Webpack 3 as mentioned in v4 release notes.
If there’s a simple (non-hacky) way to reliably test the webpack version I’m open to adding a “your webpack version is not supported - use webpack 4 or and older version of ts-loader”. Otherwise I think it’s best left as is.
This was intentionally a breaking changes release and TBH people should take a look at release notes if they are hoping to make a major version bump. Not trying to be difficult. Just trying to be a good semver citizen.