angular-builders: [Issue] Data path '' should NOT have additional properties (es5BrowserSupport) with `10.0.0` only
Describe the Bug
I have this error:
Data path '' should NOT have additional properties (es5BrowserSupport)
When serving my Angular 10 application.
This is only an issue with the version 10.0.0 of @angular-builders/custom-webpack dependency.
Installing the version 9.2.0 of @angular-builders/custom-webpack fix the error.
Expected Behavior
No error and the app start running.
Environment
Libs
- @angular/core version: 10.0.8
- @angular-devkit/build-angular version: 0.1000.5
- @angular-builders/custom-webpack version: 9.2.0
I do not know if you are aware of this error and if not let me know if you need more information about my project.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 4
- Comments: 32 (6 by maintainers)
Commits related to this issue
- Fix custom-webpack Issue https://webpack.js.org/loaders/postcss-loader https://github.com/just-jeb/angular-builders/issues/810 — committed to revfactory/material-with-tailwindcss by kakao-robin-hwang 3 years ago
What I’ve found in documentation:
Example angular.json:
For those struggling with
Data path "" should NOT have additional properties(customWebpackConfig).:Make sure you configure
customWebpackConfigwith@angular-builders/custom-webpack:browser(and not@angular-builders/custom-webpack:dev-server).See: custom-webpack-dev-server for more.
I am having the same problem with angular 11 as well. Any solution to this?
@martinsotirov I copied wrong builder, I’m sorry… Please check my updated answer 😃
Basically what I meant is this part here in
angular.jsonis most likely causing you troubles (it was the case in our project):Remove
customWebpackConfigsection and configure it inbuildtarget with@angular-devkit/custom-webpack:browserand it should work (at least you won’t be getting thoseData path "" should NOT have additional properties(customWebpackConfig).errors anymore)I’m sorry, I have the same for :
with package.json:
If you guys having the above error with 'es5BrowserSupport ’ specified.
At ‘angular.json’ go: projects.ng-complete-guide-update.architect.build.options and delete property" es5BrowserSupport : true"
because Property ‘es5BrowserSupport’ is not allowed
Same problem on Angular 11. Came about because I updated my postcss chain which depends on webpack 5.
Nothing yet? having the same issue
+1
Data path "" should NOT have additional properties(allowedCommonJsDependencies).package.json
All these cases smell like some versions collision, would you mind running this:
npm list @angular-devkit/build-angularnpm list @angular-devkit/architectnpm list @angular-devkit/coreAnd posting the results here?
In my case, the problem was a leftover configuration statement from my previous tslint configuration in
angular.jsonlint options.Before:
After:
Look for that property
es5BrowserSupporton your angular.json file and remove it.In general the compiler is telling you that it doesn’t recognize the mentioned property, so in the case of:
Data path "" should NOT have additional properties(vendorChunk)., thevendorChunkproperty is not recognized and should be removed or replaced with a correct value.@fnnzzz brothers in errors then 🥳
I also tried to downgrade to version 9.2.0, got an error
ERROR in Cannot read property 'flags' of undefined@just-jeb I already tried to remove the package-lock, node_modules and reinstall everything and it did not change a thing. I followed the exact same steps than this comment because it was slightly different from what I did nevertheless the issue is still here 😢
I have a similar case with
@angular-builders/custom-webpack:serverI get the error “Data path “” should NOT have additional properties(vendorChunk).”Environment: