KevinVandy / mantine-react-table

A fully featured Mantine V5 implementation of TanStack React Table V8, forked from Material React Table
https://www.mantine-react-table.com/
MIT License
847 stars 145 forks source link

Failed to resolve import "mantine-react-table/locales/fr" #390

Open Leo-Schmit opened 2 months ago

Leo-Schmit commented 2 months ago

mantine-react-table version

2.0.0-beta.6

react & react-dom versions

18.3.1

Describe the bug and the steps to reproduce it

https://v2.mantine-react-table.com/docs/guides/localization#localization-(i18n)-guide Click "open code sandbox"

Minimal, Reproducible Example - (Optional, but Recommended)

https://codesandbox.io/p/devbox/github/KevinVandy/mantine-react-table/tree/v2/apps/mantine-react-table-docs/examples/localization-i18n-fr/sandbox?file=%2Fsrc%2FTS.tsx

Screenshots or Videos (Optional)

image

Do you intend to try to help solve this bug with your own PR?

None

Terms

JulioGiovanni commented 2 months ago

I have the same issue but with the ES localization CleanShot 2024-08-26 at 17 31 35@2x

alessandrojcm commented 2 months ago

Hey sorry for the late reply, we need to look into this as it has it keeps popping up. It has been very difficult to get the bundler to play nice with these files. One (very ugly) workaround can be to copy the contents of the localization file to your project (is just a plain JS object) and use that in the meantime.

oskarcronwall commented 1 month ago

I got the same kind of error when importing locale files. I mananged to work around it by changing
import { MRT_Localization_SV } from "mantine-react-table/locales/sv"; to import { MRT_Localization_SV } from "mantine-react-table/locales/sv/index.cjs";