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
@semantic-release/npm depends on npm and npm depends chalk with ^4.1.2, BUT npm bundles chalk with bundleDependencies.
Since https://registry.npmjs.org/npm/8.3.2 shows "chalk":"*" due to bundleDependencies, yarn installs the latest chalk which is ESM and it causes errors in non-ESM projects.
The detail information is described in semantic-release/semantic-release#2323
Though there is a workaround (semantic-release/semantic-release#2323 (comment)), I'm wondering whether we can avoid this issue with an easier way (I want to avoid adding resolutions in package.json if possible).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
@semantic-release/npm
depends onnpm
andnpm
dependschalk
with^4.1.2
, BUTnpm
bundleschalk
withbundleDependencies
.Since https://registry.npmjs.org/npm/8.3.2 shows
"chalk":"*"
due tobundleDependencies
,yarn
installs the latestchalk
which is ESM and it causes errors in non-ESM projects.The detail information is described in semantic-release/semantic-release#2323
Though there is a workaround (semantic-release/semantic-release#2323 (comment)), I'm wondering whether we can avoid this issue with an easier way (I want to avoid adding
resolutions
inpackage.json
if possible).Beta Was this translation helpful? Give feedback.
All reactions