react-bulma-components
react-bulma-components copied to clipboard
Can't find declaration types if importing library as ESM
Describe the bug When importing library as ESM, Typescript fails to find types.
To Reproduce Steps to reproduce the behavior:
- Import a random component using
/esm
imports. Example:import { Message } from 'react-bulma-components/esm'
; - 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