Skip to content
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

@tarojs/helper 依赖的 @swc/[email protected] 存在异常 #17085

Open
2410655661 opened this issue Dec 26, 2024 · 1 comment
Open

@tarojs/helper 依赖的 @swc/[email protected] 存在异常 #17085

2410655661 opened this issue Dec 26, 2024 · 1 comment

Comments

@2410655661
Copy link

相关平台

微信小程序

小程序基础库: 3.7.3
使用框架: React

复现步骤

taro init 初始化项目之后,运行yarn build:weapp 或者 yarn dev:weapp 即可复现

期望结果

@swc/core的这个依赖因为版本问题出现了N次问题了,能否将@swc/core依赖放置到peer依赖中,或者是锁定对应的版本号,而不是使用当前的最新大版本

实际结果

@swc/core安装争确的版本,不会影响编译

环境信息

 Taro v3.5.12

  Taro CLI 3.5.12 environment info:
    System:
      OS: Windows 10
    Binaries:
      Node: 14.18.3 - D:\Program Files\nodejs\node.EXE
      Yarn: 1.22.17 - D:\Program Files\nodejs\yarn.CMD
      npm: 6.14.15 - D:\Program Files\nodejs\npm.CMD  
@2410655661
Copy link
Author

2410655661 commented Dec 26, 2024

尽管出现了N遍了,还是补充一下报错信息:
thread '' panicked at C:\Users\runneradmin/.cargo\registry\src\index.crates.io-6f17d22bba15001f\swc-9.0.0\src\plugin.rs:169:14:
failed to invoke plugin: failed to invoke plugin on 'Some("\src\app.config.ts")'

Caused by:
0: failed to invoke \node_modules\@tarojs\helper\swc\plugin-define-config\target\wasm32-wasi\release\swc_plugin_define_config.wasm as js transform plugin at \node_modules@tarojs\helper\swc\plugin-define-config\target\wasm32-wasi\release\swc_plugin_define_config.wasm
1: wasm plugin bytecheck failed "failed without error information; enable debug assertions and the alloc feature in rancor for error information"
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
Error: failed to handle: failed to invoke plugin: failed to invoke plugin on 'Some("\src\app.config.ts")'

Caused by:
0: failed to invoke \node_modules\@tarojs\helper\swc\plugin-define-config\target\wasm32-wasi\release\swc_plugin_define_config.wasm as js transform plugin at \node_modules@tarojs\helper\swc\plugin-define-config\target\wasm32-wasi\release\swc_plugin_define_config.wasm
1: wasm plugin bytecheck failed "failed without error information; enable debug assertions and the alloc feature in rancor for error information"
at Compiler.transformSync (\node_modules@tarojs\helper\node_modules@swc\core\index.js:249:29)
at Object.transformSync (\node_modules@tarojs\helper\node_modules@swc\core\index.js:359:21)
at compile (\node_modules@tarojs\helper\node_modules@swc\register\lib\node.js:76:22)
at compileHook (\node_modules@tarojs\helper\node_modules@swc\register\lib\node.js:91:16)
at Module._compile (\node_modules\pirates\lib\index.js:113:29)
at Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Object.newLoader [as .ts] (\node_modules\pirates\lib\index.js:121:7)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:12)
at Module.require (internal/modules/cjs/loader.js:974:19) {
code: 'GenericFailure'
}

This was referenced Dec 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant