Closed hughess closed 5 months ago
I think this is related to the CodeBlock
component, which had syntax highlighting with Prism added recently.
Specifically, it seems that the language-specific imports are not able to access Prism when run. Which might mean Prism is not loading in time.
The section of CodeBlock.svelte
in question:
import Prism from 'prismjs';
import './prism-svelte.js';
import 'prismjs/components/prism-bash';
import 'prismjs/components/prism-sql';
import 'prismjs/components/prism-python';
import 'prismjs/components/prism-markdown';
Occasionally will get an error in the browser which causes the Evidence loading screen to stay on the screen infinitely. In the browser console, it shows a
Prism is not defined
error.Workaround
Deleting
node_modules
folder andpackage-lock.json
file, then runningnpm install
This fixes it, but it comes up from time to time unexpectedly