- Notifications
You must be signed in to change notification settings - Fork246
Description
Version
8.0.0
Environment
All environments
Reproduction link
https://stackblitz.com/edit/angular-5remi8?file=package.json
Steps to reproduce
Open the test projecthttps://stackblitz.com/edit/angular-5remi8?file=package.json and got o console to see the error.
What is expected?
The Steps component to be visible without any errors
What is actually happening?
Component is not shown and error in console log:
Error: NG0203: inject() must be called from an injection context such as a constructor, a factory function, a field initializer, or a function used withEnvironmentInjector#runInContext
. Find more athttps://angular.io/errors/NG0203
Other?
This test project is created using thehttps://ng.mobile.ant.design/#/components/steps/en and then Open in Stackblitz with the Angular versions set to Angular 16. Noting else is changed so it works using Angular 15 but does not when using Angular 16