tarojs3.0.8版本微信小程序报错
-
版本:tarojs3.0.8&vue2.6.12
tarojs3.0.8版本,开发微信小程序,启动或打包均报错。
- 正在编译...Cannot read property 'buildTemplate' of undefined Cannot read property 'buildTemplate' of undefined (node:13196) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'buildTemplate' of undefined at TaroMiniPlugin.<anonymous> (D:\project\2020\taro\taro-vue2-antetype\node_modules\@tarojs\mini-runner\src\plugins\MiniPlugin.ts:628:71) at Generator.next (<anonymous>) at fulfilled (D:\project\2020\taro\taro-vue2-antetype\node_modules\@tarojs\mini-runner\dist\plugins\MiniPlugin.js:5:58) at runMicrotasks (<anonymous>) at processTicksAndRejections (internal/process/task_queues.js:97:5) (node:13196) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:13196) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. | 正在编译...
-
@A易拉宝 版本统一后正常了,cli版本和tarojs版本需要保持一致。可以用taro doctor检测下代码。