Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

按项目主页的说明引入单个组件 失败。 #77

Closed
1 of 3 tasks
wgf4242 opened this issue Mar 30, 2018 · 3 comments
Closed
1 of 3 tasks

按项目主页的说明引入单个组件 失败。 #77

wgf4242 opened this issue Mar 30, 2018 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@wgf4242
Copy link

wgf4242 commented Mar 30, 2018

Issue Type:

  • Bug
  • Feature
  • Help

Version & Environment:
ng 5.

Description:

Unexpected value 'undefined' imported by the module 'AppModule'

https://stackblitz.com/edit/angular-el-angular-test

# app.module.ts
@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    FormsModule,
    BrowserAnimationsModule,
    ElChildModules.ElDataPicker
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule {
}

[Solved] Thanks to WittBulter
imports:[ ElChildModules.ElInputsModule.forRoot(), ElChildModules.ElDateModule.forRoot() ]

@unix
Copy link
Contributor

unix commented Mar 30, 2018

this issue maybe a typo: ElDataPicker => ElDateModule.

All submodules please see here

@unix unix added the question Further information is requested label Mar 30, 2018
@unix unix self-assigned this Mar 30, 2018
@wgf4242
Copy link
Author

wgf4242 commented Mar 30, 2018

I used ElChildModules.ElDateModule or ElChildModules.ElDateModule.forRoot(), then got another error

preview-e0903b47b015eda0b7ee.js:1 ERROR Error: StaticInjectorError(AppModule)[ElInput -> ElFormItem]: StaticInjectorError(Platform: core)[ElInput -> ElFormItem]:

https://stackblitz.com/edit/angular-el-angular-test

@unix
Copy link
Contributor

unix commented Mar 30, 2018

apparent, date component depend on input component.

@wgf4242 wgf4242 closed this as completed Mar 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants