报错
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../nodemodules/@tarojs_runtime@3.1.1@@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
相关平台
微信小程序
复现仓库
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../nodemodules/@tarojs_runtime@3.1.1@@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
环境信息
补充信息
在微信小程序中无问题,微信中有问题,定位文件为classlist.ts