You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This bug is often disguised when using npm, as some other package in your project will likely depend on tslib. But it won't work in pnpm without --shamefully-hoist as pnpm doesn't expose transitive dependencies by default.
The text was updated successfully, but these errors were encountered:
(Borrowing from dojo/core#372, which has a really clear writeup of the same bug in a different NPM package)
When this package is installed, the generated
.js
files containrequire("tslib")
. So tslib needs to be independencies
, not justdevDependencies
.Here's a simple repro case:
This bug is often disguised when using npm, as some other package in your project will likely depend on tslib. But it won't work in pnpm without
--shamefully-hoist
as pnpm doesn't expose transitive dependencies by default.The text was updated successfully, but these errors were encountered: