【发布时间】:2020-12-21 23:46:37
【问题描述】:
我在使用 Amplify 时遇到了这个错误,我已经完成了构建。
Failed to load resource: the server responded with a status of 400
manifest.json:1
本系统可以在本地环境下工作。本地环境的Package.json脚本就是这个。
.......
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"format": "./node_modules/.bin/eslint --fix --ignore-path .gitignore ."
},
.......
我的 amplify.xml 在下面。
version: 1
frontend:
phases:
preBuild:
commands:
- nvm install 14.15.0
- nvm use 14.15.0
- yarn install
build:
commands:
- nvm install 14.15.0
- nvm use 14.15.0
- node -v
- yarn run build
artifacts:
baseDirectory: public
files:
- '**/*'
cache:
paths:
- 'node_modules/**/*'
屏幕完全空白。
有人遇到同样的问题吗?
【问题讨论】:
标签: javascript reactjs amazon-web-services npm aws-amplify