Replies: 6 comments 2 replies
-
This is a bug. Why was it moved to "Discussion"? And no answer? |
Beta Was this translation helpful? Give feedback.
-
Same issue here... |
Beta Was this translation helpful? Give feedback.
-
Am having the same issue with Yarn 4.3.0 edit: just saw another discussion of the same #1529 |
Beta Was this translation helpful? Give feedback.
-
Same issue here. If @rollup/plugin-typescript needs tslib as a dependency to work properly, then it should install it itself as a dependency and not throw an error.
And the answer to the question is clear. Of course it's not installed. Why would it be? I can understand it expecting to find typescript already on a project, but why tslib? Dependencies of this kind should not be managed by a developer, but by the library authors. Specially because they are the ones that know what version of tslib is needed. |
Beta Was this translation helpful? Give feedback.
-
The typescript plugin sets plugins/packages/typescript/package.json Lines 62 to 64 in 92daef0 I think a better question here is whether we can improve the error message by prompting the user to install a reasonable version of |
Beta Was this translation helpful? Give feedback.
-
Doesn't work for me even with installed tslib.
|
Beta Was this translation helpful? Give feedback.
-
Follow the doc,
and run
pnpm exec rollup -c --configPlugin typescript
,then throw error:
But if I use that typescript2 plugin, this command will work well.
Beta Was this translation helpful? Give feedback.
All reactions