Taro项目启动H5开发模式运行不起来
-
Taro项目启动H5开发模式,运行npm run dev:h5,抛出错误:
(node:2498) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'isWatch' of undefined
(node:2498) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled willterminate the Node.js process with a non-zero exit code.检查发现是在webpack-runner包里头抛出来的,
这里的config为undefined。
-
cli和项目的taro依赖版本没有对上