Solvedprism TypeError: Cannot read property 'tokenizePlaceholders' of undefined
marc136 posts at
16 Answers
Share
Original✔️Accepted Answer
For anyone who comes here and is not using node or Webpack, you have to include prismjs/components/prism-markup-templating.js
before prismjs/components/prism-php.js
to fix the error in this issue.
Other Answers:
For anyone who comes here and is not using node or Webpack, you have to include
prismjs/components/prism-markup-templating.js
beforeprismjs/components/prism-php.js
to fix the error in this issue.
it works! thx a lot!
Related Issues:
88
prism TypeError: Cannot read property 'tokenizePlaceholders' of undefined
For anyone who comes here and is not using node or Webpack Hello When I use version 1.14.0 in node.j...
23
prism Using non-default Prism languages with Webpack
I figured it out by using this: Prism is pretty stupid on resolving dynamic dependencies First prism...
Hello,
When I use version 1.14.0 in node.js, I get an undefined error (which is not present when I use 1.13.0)
I would guess it is a problem with the php component. Can someone reproduce it?
example:
When I use prismjs@1.14.0 I receive this output:
If I remove the line
require('prismjs/components/prism-php')
, I get the desired output:I also get the same output if I use prismjs@1.13.0 instead
Maybe it was introduced with #1367 ?
Regards,
marc