Skip to content

'TransferState' refers to a value, but is being used as a type here. Did you mean 'typeof TransferState'? #50014

@dxvladislavvolkov

Description

@dxvladislavvolkov

Which @angular/* package(s) are the source of the bug?

platform-browser

Is this a regression?

Yes

Description

I tested components with new version of angular and found that I have an error when try to serve or build app.
The error: "'TransferState' refers to a value, but is being used as a type here. Did you mean 'typeof TransferState'?"
I see that TransferState is deprecated in platform-browser but it looks like BC (not deprecated). Now I can't update my library to 16 angular and need use 14 or 15 angular

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

The error: "'TransferState' refers to a value, but is being used as a type here. Did you mean 'typeof TransferState'?"

Please provide the environment you discovered this bug in (run ng version)

Angular: next

Anything else?

No response

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: coreIssues related to the framework runtimeregressionIndicates than the issue relates to something that worked in a previous version

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions