Closed passbyval closed 2 years ago
"@swc/core": "1.2.179", "swc-loader": "0.1.16", It also happened to me, As workaround, you can revert swc/loader to above version to skip this issue
Downgrading didn't work for me, but removing the options object from the swc-loader
config did:
{
loader: "swc-loader",
options: {
jsc: {
parser: {
syntax: "typescript"
}
}
}
}
->
{
loader: "swc-loader",
}
Oh... I'm not sure about the cause
Ah, maybe the patch for overriding configs is the cause.
Over the past week,
swc-loader
has begun intermittently throwing errors, and failing to build:This happens to all React components.
Loader config:
Versions:
The weird thing is, one day it will work fine, but the next it starts breaking again with no changes.
Troubleshooting tried:
node_modules
@swc/core
and@swc/cli
to their latest versions