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

[vite:preact-jsx] Cannot find package '@babel/plugin-proposal-decorators' imported from /taro-project/babel-virtual-resolve-base.js #17160

Open
vaynevayne opened this issue Jan 8, 2025 · 0 comments

Comments

@vaynevayne
Copy link

相关平台

微信小程序

复现仓库

https://github.com/vaynevayne/react-fabric.git
小程序基础库: 2.26.0
使用框架: React

复现步骤

正在配置成混合模式, pnpm run dev:weapp 启动taro-project 控制台报错, 使用vite模板

期望结果

无错误

实际结果

vite v4.5.5 building for production...

watching for file changes...

build started...
✓ 13 modules transformed.
[vite:preact-jsx] Cannot find package '@babel/plugin-proposal-decorators' imported from /taro-project/babel-virtual-resolve-base.js
file: /taro-project/src/app.ts
transforming (84) node_modules/.pnpm/@tarojs [email protected]/node_modules/@tarojs/runtime/dist/dom-external/inner-html/scaner.js

环境信息

👽 Taro v4.0.8


  Taro CLI 4.0.8 environment info:
    System:
      OS: macOS 14.4.1
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 20.10.0 - ~/.volta/tools/image/node/20.10.0/bin/node
      Yarn: 1.22.22 - ~/.volta/tools/image/yarn/1.22.22/bin/yarn
      npm: 10.2.3 - ~/.volta/tools/image/node/20.10.0/bin/npm
    npmPackages:
      @tarojs/cli: 4.0.8 => 4.0.8 
      @tarojs/components: 4.0.8 => 4.0.8 
      @tarojs/helper: 4.0.8 => 4.0.8 
      @tarojs/plugin-framework-react: 4.0.8 => 4.0.8 
      @tarojs/plugin-platform-alipay: 4.0.8 => 4.0.8 
      @tarojs/plugin-platform-h5: 4.0.8 => 4.0.8 
      @tarojs/plugin-platform-harmony-hybrid: 4.0.8 => 4.0.8 
      @tarojs/plugin-platform-jd: 4.0.8 => 4.0.8 
      @tarojs/plugin-platform-qq: 4.0.8 => 4.0.8 
      @tarojs/plugin-platform-swan: 4.0.8 => 4.0.8 
      @tarojs/plugin-platform-tt: 4.0.8 => 4.0.8 
      @tarojs/plugin-platform-weapp: 4.0.8 => 4.0.8 
      @tarojs/runtime: 4.0.8 => 4.0.8 
      @tarojs/shared: 4.0.8 => 4.0.8 
      @tarojs/taro: 4.0.8 => 4.0.8 
      @tarojs/vite-runner: 4.0.8 => 4.0.8 
      babel-preset-taro: 4.0.8 => 4.0.8 
      eslint-config-taro: 4.0.8 => 4.0.8 
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