Module not found: Error: Can't resolve '@types/svgo'
Had the same issue. The solution is to move @types/*
to devDependencies
rather than keep them in dependencies
in package.json
.
If you have a new project then you should use yard add with --dev
flag, i.e. yarn add --dev @types/svgo
.