You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Observe that theme was not applied because themePath was not provided in the config.
Expected Behavior
What behavior were you expecting to see?
Theme should be loaded. I think specifying themePath in the configuration should be optional.
The application might have conditional logic for loading theme based on user preferences. There's no need to first load a theme that the user does not need, and then switch to a user-preferred theme.
Actual Behavior
What behavior did you actually see?
Theme is not loaded due to an error.
StackBlitz doesn't provide a good error stack trace. Here's what I get locally:
ERROR TypeError: Cannot set properties of undefined (setting 'href')
at HighlightLoader.setTheme (ngx-highlightjs.mjs:133:36)
Reproduction
Steps to reproduce:
Expected Behavior
What behavior were you expecting to see?
Theme should be loaded. I think specifying
themePath
in the configuration should be optional.The application might have conditional logic for loading theme based on user preferences. There's no need to first load a theme that the user does not need, and then switch to a user-preferred theme.
Actual Behavior
What behavior did you actually see?
Theme is not loaded due to an error.
StackBlitz doesn't provide a good error stack trace. Here's what I get locally:
This points to this line of code
The
_themeLinkElement
is undefined becauseloadTheme
, which sets this variable, never got to runEnvironment
The text was updated successfully, but these errors were encountered: