Custom npm pacakge having errors probably with npm link

Viewed 25

I am stuck with this problem for a while now, so I seek help. I have an npm package which I don't want to publish to npm but want to use locally.

Therefore I used npm link in the custom package repository and npm link <route_to_the_package> in the repository where I would like to use.

Things started to be tricky when I wanted to continue the development in the custom package library and got error for the style component.

I have tried everything which was described on the internet.

  • added peer dependencies
  • modified webpack

So far nothing happened. I really need some idea good tips for this.

package.json of the custom package pic

package.json of the repository where I would like to use the custom package

pic2

Styled components error from the chrome: enter image description here

pic3 pic4

Webpack: pic5

0 Answers
Related