NG-ZORRO / ng-zorro-antd-mobile

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

'xxx' is not a known element #700

Closed self-regulation closed 3 years ago

self-regulation commented 4 years ago

try Examples get error,need help

截屏2020-05-25 下午8 51 12 截屏2020-05-25 下午8 53 16 截屏2020-05-25 下午8 53 48
sandyisone commented 4 years ago

app.module.ts要imports:NgZorroAntdMobileModule

xjchenhao commented 4 years ago

我也遇到了这个问题。app.module.ts已经imports了NgZorroAntdMobileModule。

import { BrowserModule } from "@angular/platform-browser";
import { NgModule } from "@angular/core";
import { NgZorroAntdMobileModule } from "ng-zorro-antd-mobile";

import { AppRoutingModule } from "./app-routing.module";
import { AppComponent } from "./app.component";
import { MyComponent } from "./component/my/my.component";

@NgModule({
  declarations: [AppComponent, MyComponent],
  imports: [BrowserModule, AppRoutingModule, NgZorroAntdMobileModule],
  providers: [],
  bootstrap: [AppComponent],
})
export class AppModule {}

angular的版本号是:8.2.14 ng-zorro-antd-mobile的版本号是:1.0.5

zhoufeii commented 4 years ago

请问一下这个问题最后解决了吗

user-xm commented 4 years ago

我刚刚遇到这个问题, 通过在特性模块中引入 NgZorroAntdMobileModule 解决.

Eve-Sama commented 4 years ago

这个问题还存在吗?