0

I am using prism.js in my project and when I switch to universal-cli I get error in terminal from server side

ReferenceError: Prism is not defined

in angular-cli.json I have prism script:

"scripts": [
    "assets/prism.js"
]

And from component I call it like this:

declare var Prism: any;
Prism.highlightAll();

Anyone know how to solve this?

Suraj Rao
  • 29,388
  • 11
  • 94
  • 103
Vladimir
  • 1,751
  • 6
  • 30
  • 52

0 Answers0