Heroku Deploy React Error: Didn't get a result from child compiler ./src/App.css
Heroku Deploy React Error: Didn't get a result from child compiler ./src/App.css
希望在 Heroku 上部署 React 应用程序但是
-----> Build
Running build
> crmprototype@0.1.0 build /tmp/build_0b3e74dd_
> react-scripts build
Creating an optimized production build...
Failed to compile.
./src/App.css
Error: Didn't get a result from child compiler
at runMicrotasks (<anonymous>)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! crmprototype@0.1.0 build: `react-scripts build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the crmprototype@0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /tmp/npmcache.gNVt2/_logs/2020-10-30T02_00_17_191Z-debug.log
Git 回购在这里
https://github.com/marcoantonio123456/wivo-testing
我似乎找不到我的 App.css 文件有什么问题
导入 css 文件对我来说似乎不错,可能是因为您提交了构建文件夹而 .css 文件不存在?不应提交构建文件夹。
在您的 css 文件中。在@font-face 中应该是
src: url(./fonts/Europa-Bold/Europa-Bold.woff);
在您指向 src: url(./fonts/Europa-Bold/Europa-Bold.css);
之前,它不是一个字体文件,它是一个 css 文件
希望在 Heroku 上部署 React 应用程序但是
-----> Build
Running build
> crmprototype@0.1.0 build /tmp/build_0b3e74dd_
> react-scripts build
Creating an optimized production build...
Failed to compile.
./src/App.css
Error: Didn't get a result from child compiler
at runMicrotasks (<anonymous>)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! crmprototype@0.1.0 build: `react-scripts build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the crmprototype@0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /tmp/npmcache.gNVt2/_logs/2020-10-30T02_00_17_191Z-debug.log
Git 回购在这里
https://github.com/marcoantonio123456/wivo-testing
我似乎找不到我的 App.css 文件有什么问题
导入 css 文件对我来说似乎不错,可能是因为您提交了构建文件夹而 .css 文件不存在?不应提交构建文件夹。
在您的 css 文件中。在@font-face 中应该是
src: url(./fonts/Europa-Bold/Europa-Bold.woff);
在您指向 src: url(./fonts/Europa-Bold/Europa-Bold.css);
之前,它不是一个字体文件,它是一个 css 文件