FormidableLabs / prism-react-renderer

🖌️ Renders highlighted Prism output to React (+ theming & vendored Prism)
MIT License
1.87k stars 152 forks source link

Import type Language #211

Closed dev-shetty closed 1 year ago

dev-shetty commented 1 year ago

I was following a tutorial for NextJS and I got this error while importing the Language type

Any other way to import it in the new version?

image

urbanobaz commented 1 year ago

same @Deveesh-Shetty

dev-shetty commented 1 year ago

If you are stuck I suggest you downgrade to version 1.3.5 I did the same, till we find a solution

npm install prism-react-renderer@1.3.5

or

yarn add prism-react-renderer@1.3.5
urbanobaz commented 1 year ago

perfect! I tried it and it's working. Thank you @Deveesh-Shetty

carloskelly13 commented 1 year ago

Should be addressed in https://github.com/FormidableLabs/prism-react-renderer/releases/tag/prism-react-renderer%402.0.6