Topic: Error in build
evieira357 pro asked 5 years ago
I download the new zip file (ng-uikit-pro-standard-7.5.4.zip). after run npm install, i tried to run ng build, but the erro below rise and i'm not able to go ahead, some ideia about what going on here?
Error message:
Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
- configuration.output has an unknown property 'futureEmitAssets'. These properties are valid:
object { auxiliaryComment?, chunkCallbackName?, chunkFilename?, chunkLoadTimeout?, crossOriginLoading?, devtoolFallbackModuleFilenameTemplate?, devtoolLineToLine?, devtoolModuleFilenameTemplate?, devtoolNamespace?, filename?, globalObject?, hashDigest?, hashDigestLength?, hashFunction?, hashSalt?, hotUpdateChunkFilename?, hotUpdateFunction?, hotUpdateMainFilename?, jsonpFunction?, jsonpScriptType?, library?, libraryExport?, libraryTarget?, path?, pathinfo?, publicPath?, sourceMapFilename?, sourcePrefix?, strictModuleExceptionHandling?, umdNamedDefine?, webassemblyModuleFilename? }
-> Options affecting the output of the compilation. output
options tell webpack how to write the compiled files to disk.
WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
- configuration.output has an unknown property 'futureEmitAssets'. These properties are valid:
object { auxiliaryComment?, chunkCallbackName?, chunkFilename?, chunkLoadTimeout?, crossOriginLoading?, devtoolFallbackModuleFilenameTemplate?, devtoolLineToLine?, devtoolModuleFilenameTemplate?, devtoolNamespace?, filename?, globalObject?, hashDigest?, hashDigestLength?, hashFunction?, hashSalt?, hotUpdateChunkFilename?, hotUpdateFunction?, hotUpdateMainFilename?, jsonpFunction?, jsonpScriptType?, library?, libraryExport?, libraryTarget?, path?, pathinfo?, publicPath?, sourceMapFilename?, sourcePrefix?, strictModuleExceptionHandling?, umdNamedDefine?, webassemblyModuleFilename? }
-> Options affecting the output of the compilation. output
options tell webpack how to write the compiled files to disk.
at webpack (D:\Demos\Angular\ng-uikit-pro-standard-7.5.4\node_modules\webpack\lib\webpack.js:31:9)
at Observable._subscribe (D:\Demos\Angular\ng-uikit-pro-standard-7.5.4\node_modules\@angular-devkit\build-webpack\src\webpack-dev-server\index.js:39:37)
at Observable._trySubscribe (D:\Demos\Angular\ng-uikit-pro-standard-7.5.4\node_modules\rxjs\internal\Observable.js:44:25)
at Observable.subscribe (D:\Demos\Angular\ng-uikit-pro-standard-7.5.4\node_modules\rxjs\internal\Observable.js:30:22)
at D:\Demos\Angular\ng-uikit-pro-standard-7.5.4\node_modules\rxjs\internal\util\subscribeTo.js:22:31
at Object.subscribeToResult (D:\Demos\Angular\ng-uikit-pro-standard-7.5.4\node_modules\rxjs\internal\util\subscribeToResult.js:10:45)
at MergeMapSubscriber._innerSub (D:\Demos\Angular\ng-uikit-pro-standard-7.5.4\node_modules\rxjs\internal\operators\mergeMap.js:82:29)
at MergeMapSubscriber._tryNext (D:\Demos\Angular\ng-uikit-pro-standard-7.5.4\node_modules\rxjs\internal\operators\mergeMap.js:76:14)
at MergeMapSubscriber._next (D:\Demos\Angular\ng-uikit-pro-standard-7.5.4\node_modules\rxjs\internal\operators\mergeMap.js:59:18)
at MergeMapSubscriber.Subscriber.next (D:\Demos\Angular\ng-uikit-pro-standard-7.5.4\node_modules\rxjs\internal\Subscriber.js:67:18)
at TapSubscriber._next (D:\Demos\Angular\ng-uikit-pro-standard-7.5.4\node_modules\rxjs\internal\operators\tap.js:65:26)
at TapSubscriber.Subscriber.next (D:\Demos\Angular\ng-uikit-pro-standard-7.5.4\node_modules\rxjs\internal\Subscriber.js:67:18)
at MergeMapSubscriber.notifyNext (D:\Demos\Angular\ng-uikit-pro-standard-7.5.4\node_modules\rxjs\internal\operators\mergeMap.js:92:26)
at InnerSubscriber._next (D:\Demos\Angular\ng-uikit-pro-standard-7.5.4\node_modules\rxjs\internal\InnerSubscriber.js:28:21)
at InnerSubscriber.Subscriber.next (D:\Demos\Angular\ng-uikit-pro-standard-7.5.4\node_modules\rxjs\internal\Subscriber.js:67:18)
at MergeMapSubscriber.notifyNext (D:\Demos\Angular\ng-uikit-pro-standard-7.5.4\node_modules\rxjs\internal\operators\mergeMap.js:92:26)
evieira357 pro answered 5 years ago
Hi Damian,
After update the webpack, the project works fine now.
One thing that i saw is, if you update the angular/cli to latest version the project broke again.
When you'll release the version 8?
Thanks.Edson
Damian Gemza staff commented 5 years ago
The date of release of MDB Angular 8 is 1.07.2019
Best Regards,
Damian
Damian Gemza staff answered 5 years ago
Dear @evieira357
Please take a look at this SO ticket.
Some user informed, that you have to install webpack in version 4.29 or higher to resolve this issue.
Or try to change the angular-devkit/build-angular
package to some lower version.
Please let me know, if this problem is resolved with my advice, or not.
Best Regards,
Damian
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Pro
- Premium support: No
- Technology: MDB Angular
- MDB Version: 7.5.4
- Device: Desktop
- Browser: all
- OS: windows
- Provided sample code: Yes
- Provided link: No