Skip to content

Build process crashes during pre-rendering when using vite-plugin-ssr with Icon component from @mdi/react #830

Discussion options

You must be logged in to vote

It’s possibly an ESM-CJS compatibility thing. I’d inspect how mdi exports the components and import them accordingly.

Also check https://vite-plugin-ssr.com/common-issues#npm-packages-containing-invalid-code.

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@ruigouveiamaciel
Comment options

Answer selected by ruigouveiamaciel
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@ruigouveiamaciel
Comment options

@ruigouveiamaciel
Comment options

@brillout
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #829 on April 29, 2023 14:46.