Skip to content

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

@chioio

Description

@chioio

相关平台

微信小程序

复现仓库

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 才能执行

Metadata

Metadata

Assignees

No one assigned

    Labels

    F-reactFramework - ReactT-weappTarget - 编译到微信小程序V-3Version - 3.x

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions