У меня угловое 4 приложение, и я пытался обновить его до 6. перед обновлением при сборке приложения, внезапно получая много ошибок во время сборки.я просто gulpfile для сборки.
вот ошибка:
The following options have been renamed — please update your config: entry -> input, format -> output.format
'rxjs/Rx' is imported by build\services\alerts\alert.service.js, but could not be resolved – treating it as an external dependency
'rxjs/Observable' is imported by build\services\alerts\alert.service.js, but could not be resolved – treating it as an external dependency
'rxjs/add/operator/catch' is imported by build\services\alerts\alert.service.js, but could not be resolved – treating it as an external dependency
вот блок кода в gulpfile.js:
gulp.task('rollup:fesm', function () {
return gulp.src(`${buildFolder}/**/*.js`)
// transform the files here.
.pipe(rollup({
// Bundle's entry point
// See https://github.com/rollup/rollup/wiki/JavaScript-API#entry
entry: `${buildFolder}/index.js`,
// Allow mixing of hypothetical and actual files. "Actual" files can be files
// accessed by Rollup or produced by plugins further down the chain.
// This prevents errors like: 'path/file' does not exist in the hypothetical file system
// when subdirectories are used in the `src` directory.
allowRealFiles: true,
// A list of IDs of modules that should remain external to the bundle
// See https://github.com/rollup/rollup/wiki/JavaScript-API#external
external: [
'@angular/core',
'@angular/common',
'@angular/http',
'@angular/forms',
'@angular/router',
'primeng/primeng'
],
// Format of generated bundle
// See https://github.com/rollup/rollup/wiki/JavaScript-API#format
format: 'es'
}))
.pipe(gulp.dest(distFolder));
});
Могу ли я знать, почемуя получаю эти ошибки внезапно?единственное, что я сделал, это обновил версию своего узла до 6.11