MurhafSousli / ngx-highlightjs

Angular syntax highlighting module

Home Page:https://ngx-highlight.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ERROR TypeError: Cannot read properties of null (reading 'themePath')

MurhafSousli opened this issue · comments

In case highlight.js was imported from outside the plugin loader, we get the error
ERROR TypeError: Cannot read properties of null (reading 'themePath')

Need to check if options is defined

if (this._options.themePath) {
this.loadTheme(this._options.themePath);
}