codefeathers / rollup-plugin-svelte-svg

Import SVG files as Svelte Components
MIT License
76 stars 12 forks source link

Errors when trying to use rollup-plugin-svelte-svg with Sapper. #3

Closed joycollector closed 4 years ago

joycollector commented 4 years ago

Getting errors when trying to use rollup-plugin-svelte-svg with Sapper.

<Logo> is not a valid SSR component. You may need to review your build config to ensure that dependencies are compiled, rather than imported as pre-compiled modules

The solution is to pass generate: 'ssr' to Svelte.compile.