question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: Cannot set property 'tsLoaderFileVersion' of undefined

See original GitHub issue

Expected 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:closed
  • Created 6 years ago
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
hrguicommented, Mar 22, 2018

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.

1reaction
johnnyreillycommented, Mar 22, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found