NG-ZORRO / ng-zorro-antd-mobile

A configurable Mobile UI components based on Ant Design Mobile and Angular. 🐜
http://ng.mobile.ant.design
Other
799 stars 241 forks source link

按照教程在 Ionic 中添加 ng-zorro-antd-mobile 运行报错 #815

Closed lsczyzkb closed 2 years ago

lsczyzkb commented 2 years ago

Version

5.0.0

Environment

Ionic 最新版本

Reproduction link

https://stackblitz.com/edit/ng-zorro-antd-mobile-start?file=src/app/app.component.ts

Steps to reproduce

https://ng.mobile.ant.design/#/docs/running-in-ionic/zh

What is expected?

不报错

What is actually happening?

ERROR Error: Uncaught (in promise): Error: inject() must be called from an injection context Error: inject() must be called from an injection context at injectInjectorOnly (core.js:4764) at ɵɵinject (core.js:4774) at Module.ɵɵdirectiveInject (core.js:14753) at NodeInjectorFactory.ButtonComponent_Factory [as factory] (ng-zorro-antd-mobile.js:4730) at getNodeInjectable (core.js:3549) at instantiateAllDirectives (core.js:10278) at createDirectivesInstances (core.js:9627) at ɵɵelementStart (core.js:14880) at LoginComponent_Template (template.html:23) at executeTemplate (core.js:9598) at resolvePromise (zone.js:1255) at resolvePromise (zone.js:1209) at zone.js:1321 at ZoneDelegate.invokeTask (zone.js:434) at Object.onInvokeTask (core.js:28692) at ZoneDelegate.invokeTask (zone.js:433) at Zone.runTask (zone.js:205) at drainMicroTaskQueue (zone.js:620)

Other?

xcLtw commented 2 years ago

与 #816 合并