Skip to content

Angular JSON | ASSETS | incorrect type. Expected 'object' #21674

@abelardovn

Description

@abelardovn

Description

Hi there,

I am using Angular CLI 11.2.14.

Inside angular.json, under Assets Configuration, is stated that An object containing paths to... but an array is found below:
image

When I wrote an array instead of object:
image

If I write an object, I can't write more assets object.

What's the valid syntax for this object, please?
NPM version: 6.13.4
Node version: 12.14.0
Angular CLI: 11.2.14

Thanks

What is the affected URL?

No response

Please provide the steps to reproduce the issue

Inside angular.json, write a basic configuration to set some assets by using Angular CLI 11.2.14

Please provide the expected behavior vs the actual behavior you encountered

Expected behaviour:
I can write an array with several assets objetcts.

Actual behaviour:
A message indicates: "Incorrect type. Expected 'object'

Please provide a screenshot if possible

No response

Please provide the exception or error you saw

No response

Is this a browser-specific issue? If so, please specify the device, browser, and version.

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions