DEV Community

Discussion on: How to Create and Publish a React Component Library

Collapse
 
heypano profile image
Pano Papadatos

Awesome article!
Just in case this helps anyone:

I decided to use yarn instead of npm and ran into this issue --

[!] (plugin typescript) Error: @rollup/plugin-typescript: Could not find module 'tslib', which is required by this plugin. Is it installed?
Error: @rollup/plugin-typescript: Could not find module 'tslib', which is required by this plugin. Is it installed?

which was resolved by adding tslib as a dev dependency

Collapse
 
wallyatkins profile image
Wally Atkins
Collapse
 
keentdev profile image
Keanu Kent B. Gargar

got the same error even when using just npm

Collapse
 
ilamin profile image
Lamin

fix using npm i -D tslib

Some comments have been hidden by the post's author - find out more