-
Notifications
You must be signed in to change notification settings - Fork 2
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
swc-core核心不兼容吗? #3
Comments
https://plugins.swc.rs/versions/range/18 @0.106.0 - * |
maybe 👇🏻? [package]
authors = ["xxXyh1908 <[email protected]>"]
edition = "2021"
license = "MIT"
name = "swc_plugin_transform_vue3_jsx"
version = "0.3.0"
[lib]
crate-type = ["cdylib", "rlib"]
name = "swc_plugin_transform_vue3_jsx"
[workspace]
members = ["playground", "folder"]
[profile.release]
lto = true
opt-level = 2
[dependencies]
serde = "1"
serde_json = "1"
swc_core = {version = "0.106.4", features = [
"ecma_plugin_transform",
"ecma_visit",
"ecma_ast",
"common",
]}
vue3_jsx_folder = {path = "./folder"}
# .cargo/config defines few alias to build plugin.
# cargo build-wasi generates wasm-wasi32 binary
# cargo build-wasm32 generates wasm32-unknown-unknown binary.
|
error[E0599]: no method named .... Some errors have detailed explanations: E0061, E0063, E0277, E0308, E0412, E0432, E0560, E0599, E0609. |
很多节点需要添加 workspace: /Users/myname/github/swc-plugin-transform-vue3-jsx/Cargo.toml Caused by: |
fix by #4 |
Describe the bug
● ━━━━━━━━━━━━━━━━━━━━━━━━━ (10%) building /Users/chenyulun390/learn/rspack-vue3-jsx/node_modules/.pnpm/@rspack[email protected]/node_modules/@rspack/core/hot/dev-server.js thread '' panicked at 'called
Result::unwrap()
on anErr
value: LayoutError', C:\Users\xyh.cargo\registry\src\mirrors.sjtug.sjtu.edu.cn-7a04d2510079875b\rkyv-0.7.37\src\impls\core\mod.rs:265:67note: run with
RUST_BACKTRACE=1
environment variable to display a backtracePanic occurred at runtime. Please file an issue on GitHub with the backtrace below: https://github.com/web-infra-dev/rspack/issues
Message: failed to invoke plugin: failed to invoke plugin on 'Some("/Users/chenyulun390/learn/rspack-vue3-jsx/src/main.jsx")'
Caused by:
0: failed to invoke
swc-plugin-transform-vue3-jsx
as js transform plugin at swc-plugin-transform-vue3-jsx1: failed to run Wasm plugin transform. Please ensure the version of
swc_core
used by the plugin is compatible with the host runtime. See the documentation for compatibility information. If you are an author of the plugin, please updateswc_core
to the compatible version.Location: index.crates.io-6f17d22bba15001f/swc-1.0.0/src/plugin.rs:170
Backtrace omitted.
Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
playground-url
https://github.com/rspack-contrib/rspack-examples/tree/main/rspack/vue3-jsx
Expected generated code
The text was updated successfully, but these errors were encountered: