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

Can't find declaration types if importing library as ESM #422

Open
2snEM6 opened this issue Jun 4, 2023 · 0 comments
Open

Can't find declaration types if importing library as ESM #422

2snEM6 opened this issue Jun 4, 2023 · 0 comments
Labels

Comments

@2snEM6
Copy link

2snEM6 commented Jun 4, 2023

Describe the bug
When importing library as ESM, Typescript fails to find types.

To Reproduce
Steps to reproduce the behavior:

  1. Import a random component using /esm imports. Example: import { Message } from 'react-bulma-components/esm';
  2. Typescript fails to find types for the imported component.
Could not find a declaration file for module 'react-bulma-components/esm'. 

Expected behavior
Types should be working correctly even when importing from /esm folder

Versions

  • react-bulma-components:: latest
  • bulma: latest
  • react: 18
@2snEM6 2snEM6 added the bug label Jun 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant