Skip to content

[BUG] pluralize ESM importing #6914

@pcfreak30

Description

@pcfreak30

Describe the bug

the pluralize package needs a wildcard ESM import as it is CJS. this works in vite under normal circumstances but not during the dev mode which loads modules in some cases without any pre-processing.

Simplest solution is to switch to pluralize-esm which is a ESM fork.

Steps To Reproduce

n/a

Expected behavior

pluralize is usable in vite dev mode.

Packages

  • @refinedev/core
  • @refinedev/cli
  • @refinedev/inferencer
  • @refinedev/nestjs-query
  • @refinedev/graphql

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions