Closed iamandreadompe closed 4 years ago
Your Angular version is probably too old for these options, as the schema validator tell you that it doesn't know how to handle inject
. The angular docs are only valid for the latest Angular version, so you should upgrade your project.
I'm submitting a...
Current behavior
with the following command
npm run build
if i use inject in angular.json i get this error "Schema validation failed with the following errors: Data path ".styles[1]" should NOT have additional properties(inject). Data path ".styles[1]" should be string. Data path ".styles[1]" should match exactly one schema in oneOf"My angular.json configuration is
Expected behavior
with
npm run build
everything goes wellMinimal reproduction of the problem with instructions
Environment
Others: