v4.18.3 - PrismJS Loading Improvements & Error Handling #989
jongpie
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Many thanks go to everyone that helped with troubleshooting & testing issue #963, including @khouseknecht, @joshiausdemwald, @Rumtum, @jflammang-cp, @cbcruz74, and @khouseknecht!
Core Unlocked Package Changes
Fixed #963 in PR #988 by making a few changes to the LWC
loggerCodeViewer, used to display code snippets using PrismJSimportcan cause the Prism JS file to not load/execute successfully (╯‵□′)╯︵┻━┻Prism.highlightAll()twice was previously neededlogEntryMetadataViewerto better cover the current functionalityScreenshots
When 1 or more of the Prism static resources can't be loaded or executed,
loggerCodeViewerwill now show the code snippet without Prism formatting/highlighting (previously, alightning-spinnerjust endlessly displayed). Corresponding error messages are also printed in the browser's consoleWith the changes to use a minified version of Prism, it now successfully loads again (visually, this looks the same as before these recent issues started happening with Prism)
Installation Info
CoreUnlocked Package - no namespaceFull Changelog: v4.18.2...v4.18.3
sf package install --wait 20 --security-type AdminsOnly --package 04tg70000009GaDAAUThis discussion was created from the release v4.18.3 - PrismJS Loading Improvements & Error Handling.
Beta Was this translation helpful? Give feedback.
All reactions