Module not found: Can't resolve 'styled-components' when is a dependency (lib has it as peerdep)
Unanswered
Peterbald posted this in #help-forum
PeterbaldOP
Module not found: Can't resolve 'styled-components'
In my next project it is in the
In the component library it is in the
In rollup I am using
And I verified that is in
Why then am I seeing this error?
In my next project it is in the
package.json depencencies areaIn the component library it is in the
peerDeps areaIn rollup I am using
peerDepsExternalPluginAnd I verified that is in
node_modules of my next projectWhy then am I seeing this error?
1 Reply
@Peterbald Module not found: Can't resolve 'styled-components'
In my next project it is in the `package.json` `depencencies` area
In the component library it is in the `peerDeps` area
In rollup I am using `peerDepsExternalPlugin`
And I verified that is in `node_modules` of my next project
Why then am I seeing this error?
Dunker
when or where are you seeing this error