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

FormTemplate exported as MuiFormTemplate in typings of mui-component-mapper #1388

Open
friedbizkvit opened this issue Jun 13, 2023 · 0 comments
Labels
bug Something isn't working MUI MUI pull request

Comments

@friedbizkvit
Copy link

friedbizkvit commented Jun 13, 2023

Scope: @data-driven-forms/mui-component-mapper

Description
Root index.d.ts exports FormTemplate as MuiFormtemplate, while index.js exported it as FormTemplate

export { default as MuiFormTemplate } from './form-template';

so there is a type error when importing it.

TS2724: '"@data-driven-forms/mui-component-mapper"' has no exported member named 'FormTemplate'. Did you mean 'MuiFormTemplate'?

The root cause of this issue is that default exported variable is called 'MuiFormTemplate'

@friedbizkvit friedbizkvit changed the title FormTemplate exported as MuiFormTemplate in typings FormTemplate exported as MuiFormTemplate in typings of mui-component-mapper Jun 13, 2023
@Hyperkid123 Hyperkid123 added bug Something isn't working MUI MUI pull request labels Jun 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working MUI MUI pull request
Projects
None yet
Development

No branches or pull requests

2 participants