taro-ebook-source
taro-ebook-source copied to clipboard
Taro 掘金小册源码
package.json中缺少redux-h5,app.js中缺少render,index页没有传入props

好半天终于把云函数部署好了,结果发现很多bug,跑不起来啊
### 原因 1. 本地全局的`taro-cli`版本和项目`package.json`中所用的`taro`版本不一致。 ### 解决方案 1. `taro-cli`, 及项目中的`taro`都升级到最新版本 ``` 本地任意目录 taro update self 项目taro-demo/client目录 taro update project ``` 参考链接 https://nervjs.github.io/taro/docs/GETTING-STARTED.html#%E5%B8%B8%E7%94%A8-cli-%E5%91%BD%E4%BB%A4 此问题解决后,还是会报其他错误,但是应该都是代码层面的,慢慢来解决

未找到入口app.json文件,或者文件读取失败。无法编译,是啥情况呀
编译项目报错
编译taro-demo为微信小程序的时候有报错如下 开始编译项目 toplife-weapp path.js:1259 dirname: function dirname(path) { ^ RangeError: Maximum call stack size exceeded at Object.dirname (path.js:1259:28) at Object.exports.recursiveFindNodeModules (/usr/local/lib/node_modules/@tarojs/cli/src/util/index.js:540:24) at Object.exports.recursiveFindNodeModules (/usr/local/lib/node_modules/@tarojs/cli/src/util/index.js:545:18) at Object.exports.recursiveFindNodeModules (/usr/local/lib/node_modules/@tarojs/cli/src/util/index.js:545:18) at Object.exports.recursiveFindNodeModules (/usr/local/lib/node_modules/@tarojs/cli/src/util/index.js:545:18)...