You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// pageexportclassTagSearchextendsConnected<Props,State>{// base classexportclassConnected<Props ={}, State ={}>extendsTaroComponent<Props&Store,State>{constructor(props?: any){super(props)}}
编译h5报错 但编译weapp时没有问题
Cannot read property 'referencePaths' of undefined
at Array.forEach ()
报错信息
./.temp/util/component.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
TypeError: /Users//Documents/Code/justPlay/play-mp/.temp/util/component.js: Cannot read property 'referencePaths' of undefined
at Array.forEach ()
系统信息
操作系统: mac
Taro 版本 1.3.5
CLI 1.3.11
Node.js 版本 v10.9.0
报错平台 h5
补充信息
当尝试将Connect重命名为Component时 编译变为warning
./.temp/components/tagSearch/index.js 159:2-11
" '../../util/component' does not contain an export named 'Component'.
问题描述
给Taro页面组件提供自定义基类时(基类继承Taro.component) 编译H5报错
复现步骤
代码如下
编译h5报错 但编译weapp时没有问题
Cannot read property 'referencePaths' of undefined
at Array.forEach ()
重现repo https://github.com/p-lay/play-mp/tree/issue/h5
yarn h5即可重现
期望行为
编译通过
报错信息
./.temp/util/component.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
TypeError: /Users//Documents/Code/justPlay/play-mp/.temp/util/component.js: Cannot read property 'referencePaths' of undefined
at Array.forEach ()
系统信息
补充信息
当尝试将Connect重命名为Component时 编译变为warning
./.temp/components/tagSearch/index.js 159:2-11
" '../../util/component' does not contain an export named 'Component'.
但打开页面时找不到对应的基类
chrome devtool debug发现superClass为undefined
The text was updated successfully, but these errors were encountered: