Skip to content

Providing a responseSerialzer is broken in v5.1 #110

@davidda

Description

@davidda

provideHttpCache({ responseSerializer(value) { return structuredClone(value); } }),

Providing a responseSerialzer will cause an error on startup in v5.1 (it has worked with the same code in v4.1).

Error: Invalid provider for the NgModule 'AppModule' - only instances of Provider and Type are allowed, got: [..., ..., ..., ..., ..., ..., ..., ..., ..., ..., ...]

The difference in the providers array is that the last entry is new which is apparently not correct for angular:

Image

I am using Angular 20.

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