CodePane: TypeError: Cannot read property 'rest' of undefined
See original GitHub issueDescribe Your Environment
What version of Spectacle are you using? (can be found by running npm list spectacle
)
spectacle@5.4.0
What version of React are you using? (can be found by running npm list react
)
16.8.4
What browser are you using?
Chrome
Describe the Problem
Expected behavior:
Using CodePane
with lang="json"
should render highlighted JSON code, both running the dev server and while serving the production build.
Actual behavior:
Using CodePane
with lang="json"
fails in production build, although it works during npm start
.
The error is:
TypeError: Cannot read property ‘rest’ of undefined at Object.tokenize (prism-core.js:251)
Additional Information
I did not encounter this problem with lang="javascript"
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:12 (4 by maintainers)
Top Results From Across the Web
Uncaught TypeError: Cannot read property 'results' of undefined
I'm a complete newby to JS. Trying to use SharePoint REST API to display a link list in a ...
Read more >Cannot read properties of undefined' - JavaScript Debugging
How To Fix 'Uncaught TypeError : Cannot read properties of undefined ' - JavaScript Debugging.
Read more >TypeError Cannot read properties of undefined (reading 'data')
Hello ! I have an issue that i don't understand. I searched online but no clue for my code... I tried to create...
Read more >cannot read properties of undefined (reading 'create') node js
Here's an example of a JavaScript TypeError: Cannot read property of undefined thrown when a property is attempted to be read on an...
Read more >React Flashcards Project - TypeError: Cannot read properties ...
TypeError : Cannot read properties of undefined (reading 'quizIds') ... Without seeing the rest of your code, it is a little hard to...
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
And what is the policy to make this bug “verified”?
Closing for lack of response and because I think this was fixed in our most recent release, which updates the usage of
react-live
. Feel free to re-open this issue if the bug persists.