尝试在netlify上部署create-react-app,但我的构建页面是空白的。 我正在使用.env文件加载firebase api密钥,这对构建有影响吗?
即使我尝试在本地计算机上打开它,也是一个空白页面,并在控制台输出错误:“加载失败,源为“file:/// event-app / static / js / main.108757a0.js”” package.json: https://gist.github.com/Verthon/f82371ad2bb636b2e95c5b7697aa0bb5
即使我尝试在本地计算机上打开它,也是一个空白页面,并在控制台输出错误:“加载失败,源为“file:/// event-app / static / js / main.108757a0.js”” package.json: https://gist.github.com/Verthon/f82371ad2bb636b2e95c5b7697aa0bb5
➜ event-app git:(master) ✗ npm run build
> event-app@0.1.0 build /home/jurr/Projects/event-app
> node scripts/build.js
Creating an optimized production build...
Compiled with warnings.
./src/components/Router.js
Line 12: 'withFirebase' is defined but never used no-unused-vars
./src/components/Firebase.js
Line 21: 'Firebase' is defined but never used no-unused-vars
Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.
File sizes after gzip:
282.86 KB build/static/js/main.108757a0.js
3.1 KB build/static/css/main.8e671453.css
onload
参数,就像谷歌 API 客户端文档中提到的那样,在这里。 - Charney Kaye