Closed jerrygreen closed 1 year ago
Indeed, svgo
is a peerDependency
and those the consumer (you) need to install explicitly.
So yarn add --dev svgo
will probably solve the problem.
Indeed, it solved the issue. I guess you should add it to readme though (Or make it a normal dependency, not peer dependency)
I'm pretty sure Yarn told you you had an unmet peer dependency when installing the plugin.
Indeed. On the second thought, if it's required to use this library for the most simplest cases, why make it peer dependency? IMO it should be normal dependency.
I did
yarn add --dev @poppanator/sveltekit-svg
I addedimport svg from '@poppanator/sveltekit-svg'
and used as plugin:plugins: [sveltekit(), svg()]
After that, I'm trying to run
yarn dev
and this error happens.Is this a dependency I should manually add, or?