couds / react-bulma-components

React components for Bulma framework
MIT License
1.2k stars 129 forks source link

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

Open 2snEM6 opened 1 year ago

2snEM6 commented 1 year ago

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