icai / taro-cnode

Taro react 开发的多端cnode客户端,支持微信小程序,支付宝小程序,h5
https://taro.w3cub.com/
MIT License
37 stars 4 forks source link

cnpm i 之后, npm run dev:h5 报 js 错误,taro 全局安装的目前最新版 1.2.22 #13

Closed uncleAndyChen closed 5 years ago

uncleAndyChen commented 5 years ago

监听文件修改中...

./.temp/hoc/router.js Module build failed (from ./node_modules/_babel-loader@7.1.4@babel-loader/lib/index.js): TypeError: C:/workspace/taro/taro-cnode/.temp/hoc/router.js: Property local of ExportSpecifier expected node to be of a type ["Identifier"] but instead got "MemberExpression" at Array.forEach () at Array.forEach ()

uncleAndyChen commented 5 years ago

补充: $ node -v v10.15.3

$ npm -v 6.9.0

icai commented 5 years ago

@uncleAndyChen 你看看是源码报错还是框架报错,框架报错你去群问问老李 1.2.15 是没有问题 H5

JustDo commented 5 years ago

监听文件修改中...

./.temp/hoc/router.js Module build failed (from ./node_modules/_babel-loader@7.1.4@babel-loader/lib/index.js): TypeError: C:/workspace/taro/taro-cnode/.temp/hoc/router.js: Property local of ExportSpecifier expected node to be of a type ["Identifier"] but instead got "MemberExpression" at Array.forEach () at Array.forEach ()

遇到同样问题,不知道你解决了么

icai commented 5 years ago

@JustDo 应该新版语法有所修改导致的,我今晚看看