Skip to content

[BUG] CJS/AMD dependencies #6921

@pcfreak30

Description

@pcfreak30

Describe the bug

Refine relies on several packages that are either CJS/AMD that for whatever reason the vite bundler does not seem to handle properly. Ignoring that, it would be ideal to use ESM versions were possible, and bring in smaller packages like warn-once into refine itself.

Packages:

Overall the focus here is vite dev mode where you get a @fs proto with direct ESM packages. CJS probably should be put in vite/.deps but for me at-least, in vite 6, it isn't and these throw an error. I am not able to update to vite 7 myself at this time.

Steps To Reproduce

n/a

Expected behavior

n/a

Packages

n/a

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