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
./src/plugin/pages/list/list.tsx 10:49-58
"export 'default' (imported as 'component') was not found in '@tarojs/taro-loader/lib/native-component?{"framework":"react","name":"plugin/pages/list/list","prerender":false,"config":{"plugin/pages/list/list.config":{"content":{},"p
ath":"D:\projects\chat-wx-app\src\plugin\pages\list\list.config.ts"},"plugin/components/avatar/avatar.config":{"content":{},"path":"D:\projects\chat-wx-app\src\plugin\components\avatar\avatar.config.ts"}},"runtimePath"
:"@tarojs/plugin-platform-weapp/dist/runtime"}!../../../../node_modules/babel-loader/lib/index.js!./list.tsx'
微信开发工具里面的报错
TypeError: Cannot read property 'render' of undefined
at isClassComponent (.._src_dsl_react.ts:21)
at Entry.mount (.._src_dsl_react.ts:391)
at qi.attached (.._src_dsl_react.ts:462)
at i.safeCallback (VM601 WAService.js:2)
at i.call (VM601 WAService.js:2)
at t (VM601 WAService.js:2)
at f (VM601 WAService.js:2)
at Function.l.pretendAttached (VM601 WAService.js:2)
at Module.To (VM601 WAService.js:2)
at Cn (VM601 WAService.js:2)(env: Windows,mp,1.05.2105170; lib: 2.17.3)
相关平台
微信小程序
复现仓库
https://github.com/tongpang/taro-init
小程序基础库: 2.17.3
使用框架: React
复现步骤
按照文档步骤初始化项目
$ npm install -g @tarojs/cli
$ taro init myApp
框架:React
使用TypeScript
CSS预处理器:Less
模板源:Github
模板:wxplugin
项目创建成功之后,使用taro build --plugin weapp --watch启动项目
list.tsx文件修改代码,比如说输入一个空格,保存,编译报错
期望结果
编译成功
实际结果
./src/plugin/pages/list/list.tsx 10:49-58
"export 'default' (imported as 'component') was not found in '@tarojs/taro-loader/lib/native-component?{"framework":"react","name":"plugin/pages/list/list","prerender":false,"config":{"plugin/pages/list/list.config":{"content":{},"p
ath":"D:\projects\chat-wx-app\src\plugin\pages\list\list.config.ts"},"plugin/components/avatar/avatar.config":{"content":{},"path":"D:\projects\chat-wx-app\src\plugin\components\avatar\avatar.config.ts"}},"runtimePath"
:"@tarojs/plugin-platform-weapp/dist/runtime"}!../../../../node_modules/babel-loader/lib/index.js!./list.tsx'
微信开发工具里面的报错
TypeError: Cannot read property 'render' of undefined
at isClassComponent (.._src_dsl_react.ts:21)
at Entry.mount (.._src_dsl_react.ts:391)
at qi.attached (.._src_dsl_react.ts:462)
at i.safeCallback (VM601 WAService.js:2)
at i.call (VM601 WAService.js:2)
at t (VM601 WAService.js:2)
at f (VM601 WAService.js:2)
at Function.l.pretendAttached (VM601 WAService.js:2)
at Module.To (VM601 WAService.js:2)
at Cn (VM601 WAService.js:2)(env: Windows,mp,1.05.2105170; lib: 2.17.3)
环境信息
The text was updated successfully, but these errors were encountered: