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/plugin-html 启动weapp报错 #16165

Closed
chioio opened this issue Jul 26, 2024 · 3 comments
Closed

@tarojs/plugin-html 启动weapp报错 #16165

chioio opened this issue Jul 26, 2024 · 3 comments
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@chioio
Copy link

chioio commented Jul 26, 2024

相关平台

微信小程序

复现仓库

https://github.com/chioio/demo-plugin-html.git
小程序基础库: 3.5.1
使用框架: React

复现步骤

  1. taro init demo
  2. pnpm add -D @tarojs/plugin-html
  3. pnpm dev:weapp

期望结果

正常启动,正常应用html插件

实际结果

Error: 插件依赖 "@tarojs/plugin-html" 加载失败,请检查插件配置

环境信息

  Taro CLI 3.6.34 environment info:
    System:
      OS: macOS 13.6.7
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 18.12.0 - ~/Library/Caches/fnm_multishells/25267_1653168489651/bin/node
      Yarn: 1.22.22 - /usr/local/bin/yarn
      npm: 8.19.2 - ~/Library/Caches/fnm_multishells/25267_1653168489651/bin/npm
      pnpm: 9.5.0
    npmPackages:
      @tarojs/cli: 3.6.34 => 3.6.34
      @tarojs/components: 3.6.34 => 3.6.34
      @tarojs/helper: 3.6.34 => 3.6.34
      @tarojs/plugin-framework-react: 3.6.34 => 3.6.34
      @tarojs/plugin-platform-alipay: 3.6.34 => 3.6.34
      @tarojs/plugin-platform-h5: 3.6.34 => 3.6.34
      @tarojs/plugin-platform-jd: 3.6.34 => 3.6.34
      @tarojs/plugin-platform-qq: 3.6.34 => 3.6.34
      @tarojs/plugin-platform-swan: 3.6.34 => 3.6.34
      @tarojs/plugin-platform-tt: 3.6.34 => 3.6.34
      @tarojs/plugin-platform-weapp: 3.6.34 => 3.6.34
      @tarojs/react: 3.6.34 => 3.6.34
      @tarojs/runtime: 3.6.34 => 3.6.34
      @tarojs/shared: 3.6.34 => 3.6.34
      @tarojs/taro: 3.6.34 => 3.6.34
      @tarojs/taro-loader: 3.6.34 => 3.6.34
      @tarojs/webpack5-runner: 3.6.34 => 3.6.34
      babel-preset-taro: 3.6.34 => 3.6.34
      eslint-config-taro: 3.6.34 => 3.6.34
      react: ^18.0.0 => 18.3.1

补充信息

必须要 remove 掉 @tarojs/plugin-html(v4.0.3) 后 taro info 才能执行

@taro-bot2 taro-bot2 bot added F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Jul 26, 2024
@chioio
Copy link
Author

chioio commented Jul 26, 2024

React 18

@chioio chioio closed this as completed Jul 26, 2024
This was referenced Jul 27, 2024
@yuyanteng
Copy link

所以楼主是如何解决这个问题的??

@chioio
Copy link
Author

chioio commented Sep 4, 2024

@tarojs/plugin-html 版本必须跟 @tarojs/taro 版本一致

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
Archived in project
Development

No branches or pull requests

2 participants