You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Schema validation failed: Data path "" should NOT have additional properties #11479
Schema validation failed with the following errors:
Data path "" should NOT have additional properties(invalid).
Desired functionality
Schema validation failed with the following errors:
Data path "path/to/invalid/option" should NOT have additional properties(invalid).
Reacted by Severin Alexander Bühler, Alex Borysov, Simon Schneider, El Pupi, Максим Иванов, Simon Mallet, Sohel Ahmed Mesaniya, Mylen babaei, i-magera, BruneXX and 16 more
So it looks like the npm package is out of date compared to master. The npm package is on 0.0.2 and the github repo version is 1.0.0. I installed it using the yarn add -D isaacplmann/ngx-cypress-builder#master but am now getting Could not find module "ngx-cypress-builder" because I don't think the files are compiled. @isaacplmann might help if we get the npm package udpated.
Was just trying to point people in the right direction. This may sound stupid but when I was on your repo earlier I didn't see the option to submit an issue. Issue filed.
Apart from the error message not telling WHERE the problem is, it does tell you WHAT the problem is. I fixed one error and it gave me the next, which I fixed and so on.
Angular 11 with latest packages including "@angular-devkit/build-angular": "^0.1100.2"
For me it was my angular.json e2e lint where I had to change
Reacted by tjhleeds, Wolf Walter, szymonlisiecki, David Martinez Barreiro, sr9yar, Geoff Tripoli, Irina Chichikova, Markus Falk, Linus Schwab, MajiD and 3 more
Schema validation failed with the following errors:
Data path "" should NOT have additional properties(tsConfig).
After upgrading from tslint to eslint. Luckely I was able to find this change in source control. It would be really helpful for the error to explain which invalid items are the issue.
it was mistake in word "styleext" - Intellij idea complain and highlight it (styleext or stylesheet is not allowed here). So after fix command : "ng g c component --skip-tests" became works properly
Schema validation failed with the following errors:
Data path "" should NOT have additional properties(tsConfig).
After upgrading from tslint to eslint. Luckely I was able to find this change in source control. It would be really helpful for the error to explain which invalid items are the issue.
Fixed it. But I had no way other than guessing and reviewing source control to determine what the issue was.
I agree with @tamusjroyce above that the resolution to any error like this, is to simply remove declaring the variable that is being complained about in the source control in between the round brackets.
E.g., the error for me was as follows:
Schema validation failed with the following errors:
Data path "" should NOT have additional properties(exclude).
This means that the property defined an a JSON object titled exclude in angular.json (as noted below) is invalid like so: <project>/angular.json:
Removing the exclude definition, after my project was converted from using TSlint to ESLint, resolved the error message. Similar is to be said for issues other people had with other properties above like tsconfig or allowedCommonJsDependencies or es5BrowserSupport.
Activity
ChamNouki commentedon Jul 10, 2018
I have some kind of a similar issue but when I run
ng serve:Furthermore there is no
watchproperty in my angular.jsonpackages version of my project :
ernie58 commentedon Aug 31, 2018
I'm experiencing the same problem.
I'm trying to run cypress as e2e test-runner.
This is the config as described in de examples:
I get an error :
Mode is however a valid property, as seen in this example:
https://github.com/isaacplmann/ngx-cypress-builder/blob/master/sample/angular.json
ab0ris commentedon Sep 1, 2018
Confirming the issue, getting the following error
Though in my case I really specified nonexistent property, it would be nice for angular-cli to refer to it correctly.
PS: package versions
jordandlaman commentedon Sep 21, 2018
So it looks like the npm package is out of date compared to master. The npm package is on 0.0.2 and the github repo version is 1.0.0. I installed it using the yarn add -D isaacplmann/ngx-cypress-builder#master but am now getting Could not find module "ngx-cypress-builder" because I don't think the files are compiled. @isaacplmann might help if we get the npm package udpated.
isaacplmann commentedon Sep 21, 2018
@jordandlaman why are you commenting on this issue? If you run into a problem with
ngx-cypress-builder, file an issue here:https://github.com/isaacplmann/ngx-cypress-builder
isaacplmann commentedon Sep 21, 2018
@ernie58 I would have responded a lot faster, if you filed an issue directly on my repo
jordandlaman commentedon Sep 21, 2018
Was just trying to point people in the right direction. This may sound stupid but when I was on your repo earlier I didn't see the option to submit an issue. Issue filed.
isaacplmann commentedon Sep 21, 2018
Sorry, thanks. I'll take a look.
mcsekar12 commentedon Oct 25, 2018
Check if your apps angular.json file is valid and any changes you made to that file are correct
9 remaining items
jnfaerch commentedon Nov 27, 2020
Apart from the error message not telling WHERE the problem is, it does tell you WHAT the problem is. I fixed one error and it gave me the next, which I fixed and so on.
Angular 11 with latest packages including
"@angular-devkit/build-angular": "^0.1100.2"For me it was my angular.json e2e lint where I had to change
from this
to this
MickL commentedon Mar 8, 2021
I cant set
allowedCommonJsDependenciesas described here: https://angular.io/guide/build#configuring-commonjs-dependencies :Version:
tamusjroyce commentedon Jun 1, 2021
In angular.json I had:
and got
After upgrading from tslint to eslint. Luckely I was able to find this change in source control. It would be really helpful for the error to explain which invalid items are the issue.
Fixed it. But I had no way other than guessing and reviewing source control to determine what the issue was.
AlexFreem commentedon Jun 17, 2021
Has same error when using as builder angular-builders/custom-webpack:dev-server or angular-builders/custom-webpack:browser
relativist commentedon Jul 6, 2021
Same error. Fixed by change schematics in angular.json
was
"schematics": {
"@schematics/angular:component": {
"prefix": "app",
"styleext": "css"
},
"@schematics/angular:directive": {
"prefix": "app"
}
}
now
"schematics": {
"@schematics/angular:component": {
"prefix": "app"
},
"@schematics/angular:directive": {
"prefix": "app"
}
}
it was mistake in word "styleext" - Intellij idea complain and highlight it (styleext or stylesheet is not allowed here). So after fix command : "ng g c component --skip-tests" became works properly
farhankassam2 commentedon Nov 4, 2021
I agree with @tamusjroyce above that the resolution to any error like this, is to simply remove declaring the variable that is being complained about in the source control in between the round brackets.
E.g., the error for me was as follows:
This means that the property defined an a JSON object titled
excludeinangular.json(as noted below) is invalid like so:<project>/angular.json:Removing the
excludedefinition, after my project was converted from using TSlint to ESLint, resolved the error message. Similar is to be said for issues other people had with other properties above liketsconfigorallowedCommonJsDependenciesores5BrowserSupport.Cheers! :)
stefanoschrs commentedon Jan 20, 2024
I had the same issue and for me the fix was to remove the
buildOptimizer, vendorChunkfrom thebuild.configurationsinangular.json.So this:
Becomes this:
angular-automatic-lock-bot commentedon Oct 22, 2026
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.