美文网首页
Taro/react templateFn is not a f

Taro/react templateFn is not a f

作者: 曾经也是个少年 | 来源:发表于2021-02-25 15:08 被阅读0次

(node:4428) UnhandledPromiseRejectionWarning: TypeError: templateFn is not a function
at TaroMiniPlugin.generateTemplateFile (D:\bflvx-vue\mini-app-vue\node_modules@tarojs\mini-runner\src\plugins\MiniPlugin.ts:732:20)
at TaroMiniPlugin.<anonymous> (D:\bflvx-vue\mini-app-vue\node_modules@tarojs\mini-runner\src\plugins\MiniPlugin.ts:677:10)
at Generator.next (<anonymous>)
at fulfilled (D:\bflvx-vue\mini-app-vue\node_modules@tarojs\mini-runner\dist\plugins\MiniPlugin.js:5:58)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:4428) 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). (r
ejection id: 1)
(node:4428) [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.
� Taro v3.0.26

-检查@tarojs/cli@版本号是不是和初始化项目的版本不一致重新

npm install -g @tarojs/cli@3.1.0 //版本号为package.json 里的版本号

相关文章

  • Taro/react templateFn is not a f

    (node:4428) UnhandledPromiseRejectionWarning: TypeError: ...

  • Taro 生命周期

    Taro 的生命周期React 生命周期在 Taro 中被保留了,凡是React中的生命周期在Taro中都可以使用...

  • Taro + Dva 开发小程序(前奏篇)

    一、什么是Taro? 1、Taro 是一套遵循 React 语法规范的 多端开发 解决方案。 2、使用 Taro,...

  • Taro微信小程序开发

    一.什么是taro? Taro 是一套遵循 React 语法规范的 多端开发 解决方案。通过一套react的代码,...

  • 从0开始配置Taro2.x

    为什么我们要使用Taro,我觉得Taro可以支持RN并且使用React语法规范。 所以我选择了Taro,其实官方文...

  • 大神博客

    # Daryl # ScriptOJ # 学UI # Taro # React.js 小书

  • Taro介绍

    Taro Taro 是一套遵循 React 语法规范的 多端开发 解决方案。使用 Taro,我们可以只书写一套代码...

  • taro-build 之 RN 转换

    taro-build taro-build:命令行工具,将 react 代码转换成 weapp/swan/alip...

  • Taro框架

    Taro与React的本质区别: React中:一切皆组件Taro中:小程序端区分页面与组件。配上页面路由的是页面...

  • Taro入门(三)——生命周期钩子函数

    Taro代码的编写是继承于react的风格的,所以在生命周期钩子上Taro是继承了react的生命周期钩子函数的,...

网友评论

      本文标题:Taro/react templateFn is not a f

      本文链接:https://www.haomeiwen.com/subject/ldhufltx.html