-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when using plugins: thread '<unnamed>' panicked at 'assertion failed: prev.start > max' #7304
Comments
Filed wasmerio/wasmer#3793 |
Also experiencing this issue when trying to use more than one swc plugin. Is there some specific version of Also, using import { transform } from '@swc/core';
await transform(code, {
sourceMaps: true,
isModule: true,
filename: id,
jsc: {
experimental: {
plugins: [
[join(_dirname, 'swc_plugin_emotion.wasm'), {}],
[join(_dirname, 'swc_plugin_fusion_asseturl.wasm'), {}],
],
}
}
}); |
Upstream issue is resolved, so I think this is ok now. If it still happens, please file with repro with the latest versions. |
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Describe the bug
Steps to reproduce:
git clone https://github.com/await-ovo/reproduce-swc-plugins-crash-issue
cd reproduce-swc-plugins-crash-issue
pnpm i
RUST_BACKTRACE=1 node ./index.mjs
:Then you can see the following error:
node ./index.mjs
: you can see that transform is work as expected:Delete the
.swc
directory, and then executenode ./index.mjs
. The error in step 2 will appear again.Input code
Config
no
Playground link
No response
Expected behavior
transformSync works as expected
Actual behavior
The error is reported as above.
Version
1.3.52
Additional context
It looks like this error only occurs if you set up multiple plugins, if you comment out the
@swc/plugin-noop
inindex.mjs
,node . /index.mjs
will work fine.I'm trying to develop some swc plugins, individual plugins are working fine, but as soon as I set all the plugins together to
experiment.plugins
, I get the error reported above, I'm not sure if there is something wrong with the way I'm using it, or if this is a stupid problem, if so, please forgive me, thanks a lot ~env info:
The text was updated successfully, but these errors were encountered: