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.

increase source-map package version ( Cannot read property 'substr' of undefined err )

See original GitHub issue

Hello, team! Thanks for your work! Can you increase source-map package version to the latest (~0.6.1)? This is need beacuse of bug in source-map package: https://github.com/mozilla/source-map/issues/247. I am using preact and the bug is reproducing for me.

and the same https://github.com/webpack/webpack-sources/pull/27

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

0reactions
tomasdevcommented, Nov 3, 2017

Alt solution until this is merged:

  1. npm shrinkwrap will generate a npm-shrinkwrap.json
  2. Find "webpack-sources": { and replace it with:
      "version": "1.0.1",
      "from": "webpack-sources@>=1.0.1 <2.0.0",
      "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-1.0.1.tgz",
      "dev": true,
      "dependencies": {
        "source-map": {
          "version": "0.6.1",
          "from": "source-map@>=0.5.3",
          "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
          "dev": true
        }
      }
    },

n-joy

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot read property 'substr' of undefined · Issue #247 - GitHub
I've been digging into the error a bit more and I'm not sure that it's as easy as just applying #257 to fix...
Read more >
Cannot read property 'substr' of undefined - source-node.js ...
This error comes from having two 2 classes/components in one ts file. A brutal way to fix this.
Read more >
Developers - Cannot read property 'substr' of undefined -
TypeError: Cannot read property 'substr' of undefined at Function. (...\node_modules\webpack-sources\node_modules\source-map\lib\source-node.js:115:26).
Read more >
Uncaught TypeError: Cannot read property of undefined
If you get undefined error, you need to make sure that which ever variables throws undefined error, is assigned a value to it....
Read more >
cannot read properties of null (reading 'matches') npm - You.com
If you are getting an error that reads "Cannot read properties of null (reading 'matches')" when running npm [1][2], it usually means that...
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