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.

Broken source-maps in `@next`?

See original GitHub issue

Looks like the source-map has gone bonkers in the 2.0 beta?

source-maps

It thinks node is undefined, and somehow node.type is a VNode, in the same expression??

And this is a trivial example like patch(root, null, <div>LALALA</div>), which doesn’t work anymore…

patch.js:117 Uncaught TypeError: Cannot read property 'type' of null
    at l (patch.js:117)
    at Object.n [as patch] (patch.js:4)
    at window.setTimeout (media.tsx:61)

I mean, all the tests were passing, so what the…?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mindplay-dkcommented, Nov 10, 2017

Weird. Maybe this is a Chrome bug after all, I have seen something similar happening on another project lately, but always assumed it was due to mismatched source maps…

0reactions
jorgebucarancommented, Nov 10, 2017

I am going to close here since I feel there’s nothing I can do, but if you have any ideas, please do let me know.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Next + SWC appear to generate incorrect sourcemaps #39878
The SWC sourcemaps are incorrect - the mapped output differs from the original source code by a few lines, causing incorrect debugging behavior....
Read more >
4 Reasons Why Your Source Maps are Broken - Sentry Blog
4 Reasons Why Your Source Maps are Broken · Missing or incorrect source map directive · Missing original source files · Bad source...
Read more >
Advanced Features: Source Maps | Next.js
Enables browser source map generation during the production build. ... Adding source maps can increase next build time; Increases memory usage during next...
Read more >
NextJS Source Maps stopped working on Chrome 92
Source Maps are enabled by default during development. Any idea what changes was made which broke the source map ?
Read more >
Source Maps - SurviveJS
When your source code has gone through transformations, debugging in the browser becomes a problem. Source maps solve this problem by providing a...
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