react-bulma-components icon indicating copy to clipboard operation
react-bulma-components copied to clipboard

Can't find declaration types if importing library as ESM

Open 2snEM6 opened this issue 1 year ago • 0 comments

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 avatar Jun 04 '23 12:06 2snEM6