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
How are you deploying your application? (if relevant)
No response
Describe the Bug
Hi
I am working on creating an swc plugin and am attempting to set up a minimal example. In a bid to simplify versioning, swc has begun to package collections of packages under swc_core.
The problem is that no versions of swc_core work with next-swc yet. The issue is, either, what version of swc_core should I be using? or alternatively when do you plan to begin using swc_core?
Output is currently the following (next 12.2.6 canary 2 + swc_core 7.20)
❯ yarn dev
yarn run v1.22.17
warning ../../package.json: No license field
$ next dev
ready - started server on 0.0.0.0:3000, url: http://localhost:3000
warn - You have enabled experimental feature (swcPlugins) in next.config.js.
warn - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk.
info - SWC minify release candidate enabled. https://nextjs.link/swcmin
thread 'thread '<unnamed><unnamed>' panicked at '' panicked at 'failed to invoke plugin: failed to invoke plugin on 'Some("/home/arlyon/Programming/twinswcro-test/node_modules/next/dist/client/next-dev.js")'
Caused by:
Plugin runner cannot detect plugin's schema version. Ensure host is compiled with proper versionsfailed to invoke plugin: failed to invoke plugin on 'Some("/home/arlyon/Programming/twinswcro-test/pages/_app.tsx")'
Caused by:
Plugin runner cannot detect plugin's schema version. Ensure host is compiled with proper versions', ', /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/swc-0.214.9/src/plugin.rs/usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/swc-0.214.9/src/plugin.rs::215:21514:
14note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread '<unnamed>' panicked at 'failed to invoke plugin: failed to invoke plugin on 'Some("/home/arlyon/Programming/twinswcro-test/node_modules/next/dist/client/router.js")'
Caused by:
Plugin runner cannot detect plugin's schema version. Ensure host is compiled with proper versions', /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/swc-0.214.9/src/plugin.rs:215:14
thread '<unnamed>' panicked at 'failed to invoke plugin: failed to invoke plugin on 'Some("/home/arlyon/Programming/twinswcro-test/node_modules/next/dist/client/dev/amp-dev.js")'
Caused by:
Plugin runner cannot detect plugin's schema version. Ensure host is compiled with proper versions', /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/swc-0.214.9/src/plugin.rs:215:14
thread '<unnamed>' panicked at 'failed to invoke plugin: failed to invoke plugin on 'Some("/home/arlyon/Programming/twinswcro-test/node_modules/next/dist/pages/_error.js")'
Caused by:
Plugin runner cannot detect plugin's schema version. Ensure host is compiled with proper versions', /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/swc-0.214.9/src/plugin.rs:215:14
thread '<unnamed>' panicked at 'failed to invoke plugin: failed to invoke plugin on 'Some("/home/arlyon/Programming/twinswcro-test/pages/_app.tsx")'
Caused by:
Plugin runner cannot detect plugin's schema version. Ensure host is compiled with proper versions', /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/swc-0.214.9/src/plugin.rs:215:14
thread '<unnamed>' panicked at 'failed to invoke plugin: failed to invoke plugin on 'Some("/home/arlyon/Programming/twinswcro-test/node_modules/next/dist/pages/_error.js")'
Caused by:
Plugin runner cannot detect plugin's schema version. Ensure host is compiled with proper versions', /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/swc-0.214.9/src/plugin.rs:215:14
thread '<unnamed>' panicked at 'failed to invoke plugin: failed to invoke plugin on 'Some("/home/arlyon/Programming/twinswcro-test/node_modules/next/dist/pages/_document.js")'
Caused by:
Plugin runner cannot detect plugin's schema version. Ensure host is compiled with proper versions', /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/swc-0.214.9/src/plugin.rs:215:14
error - ./node_modules/next/dist/client/dev/amp-dev.js
Error: failed to process failed to invoke plugin: failed to invoke plugin on 'Some("/home/arlyon/Programming/twinswcro-test/node_modules/next/dist/client/dev/amp-dev.js")'
Caused by:
Plugin runner cannot detect plugin's schema version. Ensure host is compiled with proper versions
next-swc needs some time to keep up swc's upstream changes. Currently, next-swc does not incorporate swc_core as same as swc does, in result not able to handshake with plugins using swc_core. We expect to attemp to bump up next-swc to use swc_core soon, but that'll be on the canary release instead of public releases.
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Verify canary release
Provide environment information
What browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
Describe the Bug
Hi
I am working on creating an swc plugin and am attempting to set up a minimal example. In a bid to simplify versioning, swc has begun to package collections of packages under swc_core.
The problem is that no versions of swc_core work with next-swc yet. The issue is, either, what version of swc_core should I be using? or alternatively when do you plan to begin using swc_core?
Output is currently the following (next 12.2.6 canary 2 + swc_core 7.20)
Seems to be coming from here: https://github.com/swc-project/swc/blob/4a9b1dde1aaf84e233a9d1a59a1de539706e652b/crates/swc_plugin_runner/src/transform_executor.rs#L166-L169
Expected Behavior
That some version of swc_core will be advertised / supported
Link to reproduction
Difficult to create, since it depends on swc plugin
To Reproduce
Create a new plugin with
swc_cli
, build it for thewasm32_wasi
target, and attempt to use it as a nextjs swc plugin.The text was updated successfully, but these errors were encountered: