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
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 dependencystackoverflow.com/questions/559257...
got the same error even when using just npm
fix using npm i -D tslib