jakobrosenberg / svelte-prism

35 stars 7 forks source link

Consider adding `npm i prism-svelte prismjs` to documentation #45

Open eliasdefaria opened 1 year ago

eliasdefaria commented 1 year ago

Hey there,

Great lib. Super clean usage of Prism. Only thing is I got the error Prism is not defined on the browser (I'm using svelte kit). This was because I hadn't install prism-svelte and prismjs. I know you mention the dependencies in the README, but I think the simplest instructions would be to just let new devs know to install all three at once :)

Thanks!

Taha-Firoz commented 1 year ago

That's weird, I was having the same error but I needed to add it to the root layout before that Prism is not defined error went away.