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.

mdx-deck build error with 'TypeError: Cannot read property 'update' of null'

See original GitHub issue
  "devDependencies": {
    "mdx-deck": "^1.7.1",
    "mdx-deck-code-surfer": "^0.4.0",
    "raw-loader": "^0.5.1"
  }

npm start is ok, but when I build it into bundle, an error is thrown:

[mdx-deck] building
[mdx-deck] rendering static html
[err] TypeError: Cannot read property 'update' of null
    at new InnerCodeSurfer (/Users/zhiqiangzhong/Zz/myProject/slides/node_modules/mdx-deck-code-surfer/dist/deck-code-surfer.js:60:30)
    at processChild (/Users/zhiqiangzhong/Zz/myProject/slides/node_modules/react-dom/cjs/react-dom-server.node.development.js:2098:14)
    at resolve (/Users/zhiqiangzhong/Zz/myProject/slides/node_modules/react-dom/cjs/react-dom-server.node.development.js:2064:5)
    at ReactDOMServerRenderer.render (/Users/zhiqiangzhong/Zz/myProject/slides/node_modules/react-dom/cjs/react-dom-server.node.development.js:2383:22)
......

It doesn’t look like my fault

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
zz1211commented, Aug 31, 2018

I fixed it by method provided in this issue by adding --no-html option to build command, it seems an issue which will be fixed in next release.

1reaction
jgcmarinscommented, Feb 12, 2019
Read more comments on GitHub >

github_iconTop Results From Across the Web

reactjs - Uncaught TypeError: Cannot read properties of null ...
when i try to use the component in my react app it throw the error Uncaught TypeError: Cannot read properties of null (reading...
Read more >
TypeError: Cannot read properties of null (reading 'useContext ...
I just had this error (and spent like 2.5 days solving it). For me the solution was to use NPM instead of Yarn......
Read more >
mdx-deck-live-code - npm
A component for mdx-deck for live coding directly in your slides. ... There are no other projects in the npm registry using mdx-deck-live-code....
Read more >
Uncategorized Archives - Page 3 of 28 - CognosPaul
1 PH17738 PH17738: BLANK SCREEN IS PRESENTED WHEN TRYING TO UPDATE TH... 10 PH16333 PH16333: INVALID USE OF KEYWORD DISTINCT 17 PH12238 PH12238: REDUCE TIME...
Read more >
Ffb - River Thames Conditions - Environment Agency - GOV.UK
Ratnashree ahmedabad, Derfelts galena ks, Solr error 413 full head? ... Agency wide font, James richard lowe md, Austin news deck collapse!
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