Amazon web services 在AWS Amplifiy上生成失败,无错误消息
我想部署一个带有Amplify的react应用程序。在本地,该应用程序可以正常工作。但是,在AWS amplify上,构建失败,但不返回任何错误消息 日志文件的最后消息:Amazon web services 在AWS Amplifiy上生成失败,无错误消息,amazon-web-services,build,gulp,aws-amplify,Amazon Web Services,Build,Gulp,Aws Amplify,我想部署一个带有Amplify的react应用程序。在本地,该应用程序可以正常工作。但是,在AWS amplify上,构建失败,但不返回任何错误消息 日志文件的最后消息: 2020-10-04T16:54:12.528Z [INFO]: 39.39 KB build/static/js/2.19f6ef9d.chunk.js 2020-10-04T16:54:12.529Z [INFO]: 780 B build/static/js/runtime-main.55e6873b.js
2020-10-04T16:54:12.528Z [INFO]: 39.39 KB build/static/js/2.19f6ef9d.chunk.js
2020-10-04T16:54:12.529Z [INFO]: 780 B build/static/js/runtime-main.55e6873b.js
474 B build/static/js/main.48b66c5d.chunk.js
278 B build/static/css/main.5ecd60fb.chunk.css
The project was built assuming it is hosted at /.
You can control this with the homepage field in your package.json.
The build folder is ready to be deployed.
You may serve it with a static server:
yarn global add serve
serve -s build
Find out more about deployment here:
bit.ly/CRA-deploy
2020-10-04T16:54:12.542Z [INFO]: Done in 7.03s.
2020-10-04T16:54:12.547Z [INFO]: # Executing command: node ./node_modules/gulp/bin/gulp.js
这一行执行命令:node./node_modules/gulp/bin/gulp.js
在构建失败之前运行20分钟
My gulpfile.js:
'use strict';
// dependencies
var gulp = require('gulp');
var sass = require('gulp-sass');
var minifyCSS = require('gulp-clean-css');
var uglify = require('gulp-uglify');
var rename = require('gulp-rename');
var changed = require('gulp-changed');
///////////////
// - SCSS/CSS
///////////////
var SCSS_SRC = './src/Assets/scss/**/*.scss';
var SCSS_DEST = './src/Assets/css';
// Compile SCSS
function compile_scss() {
return gulp.src(SCSS_SRC)
.pipe(sass().on('error', sass.logError))
.pipe(minifyCSS())
.pipe(rename({ suffix: '.min' }))
.pipe(changed(SCSS_DEST))
.pipe(gulp.dest(SCSS_DEST));
}
// detect changes in SCSS
function watch_scss() {
gulp.watch(SCSS_SRC, compile_scss);
}
// Run tasks
gulp.task('default', watch_scss);
exports.compile_scss = compile_scss;
exports.watch_scss = watch_scss;
谢谢你的帮助。
谢谢