部署 Firebase 函数会出现错误“Insert `⏎` prettier/prettier";删除 '.'更漂亮/更漂亮 [英] Deploying Firebase functions gives error "Insert `⏎` prettier/prettier" Delete '.' prettier/prettier

查看:223
本文介绍了部署 Firebase 函数会出现错误“Insert `⏎` prettier/prettier";删除 '.'更漂亮/更漂亮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在我的 React Native 项目中尝试 Firebase 函数.我按照 rnfirebase.io 站点上的示例进行操作,当我运行命令 npm run deploy 时,它给出了错误:20:4 error Insert prettier/prettier.

I am trying Firebase functions in my React Native Project. I followed the example at rnfirebase.io site and when I run the command npm run deploy it gave the error: 20:4 error Insert prettier/prettier.

然后我在第 20 行按了 ⏎,它工作正常.

Then I pressed ⏎ at line 20 and it is working fine.

后来我从 GitHub 复制了一个代码,它也给出了同样的错误.通过跟踪错误,我得到了一些其他错误.我不知道为什么我会收到这些错误.

Later I copied a code from GitHub and it is also giving the same like errors. By following the errors I get some other errors. I don't know why I am getting these errors.

推荐答案

您需要将 Firebase Functions 的项目文件夹与 React 项目的根文件夹分开.如果仍然发生这种情况,请提供您的代码以供审核.

You need to separate the Firebase Functions' project folder from the React project's root folder. If this still happens, please provide your code for review.

这篇关于部署 Firebase 函数会出现错误“Insert `⏎` prettier/prettier";删除 '.'更漂亮/更漂亮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆