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

Wrong error message on missing module import #2305

Closed
gethari opened this issue Jun 15, 2020 · 1 comment
Closed

Wrong error message on missing module import #2305

gethari opened this issue Jun 15, 2020 · 1 comment
Labels

Comments

@gethari
Copy link

gethari commented Jun 15, 2020

Description
Incorrect error message when you don't import any theme module which took quite alot of time me fiddling with the configuration and the json etc..

Minimal Reproduction

  1. Open any of the example above
  2. Navigate to app.module.ts and comment out or remove the import of the theme module. In my case i missed importing the FormlyBootstrapModule
  3. Now if you check the console it throws the below exception

Error: [Formly Error] There is no type by the name of "input"

Your Environment

  • Angular version: 8.2.14
  • Formly version: 5.7.1

Additional context
Add any other context about the problem here.

@aitboudad
Copy link
Member

The error message has been slightly improved in v5.7.2.
Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants