Error generating Angular Project Build

Asked

Viewed 112 times

-1

I have a project for car rental didactic purposes. I already managed the WAR file of the Back End project, now I need to generate the Angular files.

However, when I will generate the build of my project, through the "ng build" command, the following error occurs:

Progress Plugin Invalid Options

options['colors'] is an invalid additional property
options should pass "instanceof" keyword validation
options should match exactly one schema in oneOf

ValidationError: Progress Plugin Invalid Options

options['colors'] is an invalid additional property
options should pass "instanceof" keyword validation
options should match exactly one schema in oneOf

    at validateOptions (C:\Users\gustavo.zaffani\IdeaProjects\projetoTCC\projetoClient\node_modules\schema-utils\src\validateOptions.js:31:11)
    at new ProgressPlugin (C:\Users\gustavo.zaffani\IdeaProjects\projetoTCC\projetoClient\node_modules\webpack\lib\ProgressPlugin.js:90:3)
    at Object.getCommonConfig (C:\Users\gustavo.zaffani\IdeaProjects\projetoTCC\projetoClient\node_modules\@angular-devkit\build-angular\src\angular-cli-files\models\webpack-configs\common.js:
123:27)
    at BrowserBuilder.buildWebpackConfig (C:\Users\gustavo.zaffani\IdeaProjects\projetoTCC\projetoClient\node_modules\@angular-devkit\build-angular\src\browser\index.js:74:31)
    at MergeMapSubscriber.rxjs_1.of.pipe.operators_1.concatMap [as project] (C:\Users\gustavo.zaffani\IdeaProjects\projetoTCC\projetoClient\node_modules\@angular-devkit\build-angular\src\brows
er\index.js:31:38)
    at MergeMapSubscriber._tryNext (C:\Users\gustavo.zaffani\IdeaProjects\projetoTCC\projetoClient\node_modules\rxjs\internal\operators\mergeMap.js:65:27)
    at MergeMapSubscriber._next (C:\Users\gustavo.zaffani\IdeaProjects\projetoTCC\projetoClient\node_modules\rxjs\internal\operators\mergeMap.js:55:18)
    at MergeMapSubscriber.Subscriber.next (C:\Users\gustavo.zaffani\IdeaProjects\projetoTCC\projetoClient\node_modules\rxjs\internal\Subscriber.js:64:18)
    at TapSubscriber._next (C:\Users\gustavo.zaffani\IdeaProjects\projetoTCC\projetoClient\node_modules\rxjs\internal\operators\tap.js:62:26)
    at TapSubscriber.Subscriber.next (C:\Users\gustavo.zaffani\IdeaProjects\projetoTCC\projetoClient\node_modules\rxjs\internal\Subscriber.js:64:18)
    at MergeMapSubscriber.notifyNext (C:\Users\gustavo.zaffani\IdeaProjects\projetoTCC\projetoClient\node_modules\rxjs\internal\operators\mergeMap.js:84:26)
    at InnerSubscriber._next (C:\Users\gustavo.zaffani\IdeaProjects\projetoTCC\projetoClient\node_modules\rxjs\internal\InnerSubscriber.js:25:21)
    at InnerSubscriber.Subscriber.next (C:\Users\gustavo.zaffani\IdeaProjects\projetoTCC\projetoClient\node_modules\rxjs\internal\Subscriber.js:64:18)
    at ForkJoinSubscriber.notifyComplete (C:\Users\gustavo.zaffani\IdeaProjects\projetoTCC\projetoClient\node_modules\rxjs\internal\observable\forkJoin.js:79:25)
    at InnerSubscriber._complete (C:\Users\gustavo.zaffani\IdeaProjects\projetoTCC\projetoClient\node_modules\rxjs\internal\InnerSubscriber.js:32:21)
    at InnerSubscriber.Subscriber.complete (C:\Users\gustavo.zaffani\IdeaProjects\projetoTCC\projetoClient\node_modules\rxjs\internal\Subscriber.js:76:18)

Has anyone ever faced the same problem, or could you tell me what it might be?

1 answer

0


Hi!

Which version of angular, npm and webpack ?

About the webpack Take a look at this file:

\projectClient node_modules@angular-devkit build-angular src angular-cli-files models webpack-configs common.js

Amend: of:

extraPlugins.push(new ProgressPlugin({ profile: buildOptions.verbose, colors: true }));

for:

extraPlugins.push(new ProgressPlugin({ profile: buildOptions.verbose }));

I found this link

  • The versions I’m using are: Version of NPM 6.4.1 Angular CLI 7.2.2 I made the change you mentioned, but when I run the project it presents an error right in the changed file. @Dalmo.santos

  • Now I went to take a closer look at the link you put in your answer, and I was able to solve the problem by placing Webpack in the dependencies of "package.json". Valeww

Browser other questions tagged

You are not signed in. Login or sign up in order to post.