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:
- Created 5 years ago
- Comments:7 (3 by maintainers)
Top 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 >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 FreeTop 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
Top GitHub Comments
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.
this comment did the trick for me: https://github.com/pomber/code-surfer/issues/8#issuecomment-416373549