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

app.config.ts中的plugins会造成企业微信小程序报错 #9086

Closed
hideOnBushhh opened this issue Apr 14, 2021 · 1 comment
Closed

app.config.ts中的plugins会造成企业微信小程序报错 #9086

hideOnBushhh opened this issue Apr 14, 2021 · 1 comment
Labels
F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@hideOnBushhh
Copy link

相关平台

微信小程序

复现仓库

https://gitee.com/hideOnBushhh/taro-test
小程序基础库: 2.4.0
使用框架: Vue 3

复现步骤

-->cnpm i
-->yarn dev:weapp
打开微信开发者工具,选择企业微信小程序

期望结果

在企业微信环境中无报错

实际结果

报错
app.js错误:
TypeError: Super expression must either be null or a function
at inherits (inherits.js:4)
at class-list.ts:3
at Module. (class-list.ts:3)
at Module../node_modules/
@[email protected]@@tarojs/runtime/dist/runtime.esm.js (next-tick.ts:43)
at webpack_require (bootstrap:79)
at Module../src/app.ts (app.ts?d765:1)
at webpack_require (bootstrap:79)
at checkDeferredModules (bootstrap:45)
at Array.webpackJsonpCallback (bootstrap:32)
at app.js:6

环境信息

Taro CLI 3.1.1 environment info:
    System:
      OS: macOS 11.2.2
      Shell: 5.8 - /bin/zsh
    Binaries:
      Node: 12.16.2 - /usr/local/bin/node
      Yarn: 1.22.10 - /usr/local/bin/yarn
      npm: 6.14.4 - /usr/local/bin/npm
    npmPackages:
      @tarojs/components: 3.1.1 => 3.1.1
      @tarojs/mini-runner: 3.1.1 => 3.1.1
      @tarojs/runtime: 3.1.1 => 3.1.1
      @tarojs/taro: 3.1.1 => 3.1.1
      @tarojs/webpack-runner: 3.1.1 => 3.1.1
      babel-preset-taro: 3.1.1 => 3.1.1
      eslint-config-taro: 3.1.1 => 3.1.1
    npmGlobalPackages:
      typescript: 3.8.3

补充信息

在微信小程序中无问题,微信中有问题,定位文件为classlist.ts

@taro-bot2 taro-bot2 bot added F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Apr 14, 2021
@hideOnBushhh
Copy link
Author

切换企业微信版本可解决 2.4.0->2.10.1 企微内部为2.12

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

No branches or pull requests

1 participant