Skip to content

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

@2snEM6

Description

@2snEM6

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions