[Bug]: Error: @swc/types@workspace:^: Workspace not found #27385
Closed
Description
Describe the bug
The latest @swc/core
release is borked. The issue is partially fixed by tagging a previous version of @swc/core
as latest
. Though, some dependencies like @storybook/test-runner
define a version range for @swc/core
which will try to install the latest published version.
The issue can be tracked here: swc-project/swc#8988
Workaround
Please use your package manager's overrides capabilities to pin the @swc/core
version until the issue is fixed upstream.
Use the overrides field for npm
/pnpm
:
// package.json
{
...
overrides: {
"@swc/core": "1.5.7"
}
}
Use the resolutions
field for yarn
:
// package.json
{
...
resolutions: {
"@swc/core": "1.5.7"
}
}