【发布时间】:2020-02-18 07:55:33
【问题描述】:
我使用 heroku 来部署我的 react 应用程序。它曾经工作正常,但现在当我运行命令时
git push heroku 大师
我看到以下错误:
remote: Browserslist: caniuse-lite is outdated. Please run next command `npm update`
remote: Failed to compile.
remote:
remote: ./src/service/TodoService.js
remote: Cannot find file './constants' in './src/service'.
我花了一个多小时试图找出原因。尝试了来自this 和this 的答案。他们没有帮助我。 我决定在我的 github 存储库中检查导致构建失败的文件,发现它的名称与我计算机上的名称不同。
这里是github:
这是我电脑上的文件:
好像 Github 没有注意到我重命名了这个文件
【问题讨论】:
标签: git github heroku deployment