小程序编译后出现genCompid is not a function 已解决
-
环境和依赖信息:
Taro CLI 1.3.0-beta.5 environment info:
System:
OS: macOS 10.14.5
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 10.15.1 - /usr/local/bin/node
Yarn: 1.16.0 - ~/.yarn/bin/yarn
npm: 6.9.0 - /usr/local/bin/npm
npmPackages:
@tarojs/async-await: ^1.2.26 => 1.2.26
@tarojs/components: 1.2.4 => 1.2.4
@tarojs/mobx: ^1.2.20 => 1.2.26
@tarojs/mobx-h5: ^1.2.17 => 1.2.26
@tarojs/mobx-rn: ^1.2.17 => 1.2.26
@tarojs/plugin-babel: 1.2.4 => 1.2.4
@tarojs/plugin-csso: 1.2.4 => 1.2.4
@tarojs/plugin-sass: 1.2.4 => 1.2.4
@tarojs/plugin-uglifyjs: 1.2.4 => 1.2.4
@tarojs/rn-runner: 1.2.4 => 1.2.4
@tarojs/router: 1.2.4 => 1.2.4
@tarojs/taro: 1.2.4 => 1.2.4
@tarojs/taro-alipay: ^1.2.15 => 1.2.26
@tarojs/taro-h5: 1.2.4 => 1.2.4
@tarojs/taro-swan: 1.2.4 => 1.2.4
@tarojs/taro-weapp: 1.2.4 => 1.2.4
@tarojs/webpack-runner: 1.2.4 => 1.2.4
eslint-config-taro: 1.2.4 => 1.2.4
eslint-plugin-taro: 1.2.4 => 1.2.4
nervjs: ^1.3.9 => 1.3.13
npmGlobalPackages:
typescript: 3.4.2
-
你应该看一下member.js 555行,你的代码有问题
-
已经好了,CLI 1.3版本报错,版本切回1.2.20就好了
-
@seagull 我也遇到同样的问题,请问怎么从1.3版本切换会1.2?
-
@penghang1993 改版本直接装就好啦
-
@penghang1993 我是先卸载taro/cli再安装的,你执行npm uninstall -g @tarojs/cli;然后执行npm install -g @tarojs/cli@1.2.20 后面1.2.20版本号换成你要安装的版本号;安装好了之后taro info看一下版本对不对
-
成功了,谢谢!昨天搞这个环境搞了一天,简直绝望
-
此回复已被删除!