You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am following the code on the docs but it throws "[plugin:vite:import-analysis] Failed to resolve import "mantine-react-table/locales/es" from "src\components\DataTable.tsx". Does the file exist?"
Minimal, Reproducible Example - (Optional, but Recommended)
import 'mantine-react-table/styles.css'; //make sure MRT styles were imported in your app root (once)
//Import Mantine React Table and its Types
import { MantineReactTable, type MRT_ColumnDef } from 'mantine-react-table';
//Import Mantine React Table Translations
import { MRT_Localization_ES } from 'mantine-react-table/locales/es';
//mock data
import { data, type Person } from '../makeData';
const columns: MRT_ColumnDef<Person>[] = [
{
accessorKey: 'firstName',
header: 'Primer nombre',
},
{
accessorKey: 'lastName',
header: 'Apellido',
enableClickToCopy: true,
},
{
accessorKey: 'age',
header: 'Años',
},
];
const Example = () => {
return (
<MantineReactTable
columns={columns}
data={data}
enableColumnFilterModes
enableColumnOrdering
enableEditing
enableColumnPinning
enableRowActions
enableRowSelection
enableSelectAll={false}
initialState={{ showColumnFilters: true, showGlobalFilter: true }}
localization={MRT_Localization_ES}
/>
);
};
export default Example;
Screenshots or Videos (Optional)
No response
Do you intend to try to help solve this bug with your own PR?
None
Terms
I understand that if my bug cannot be reliably reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
The text was updated successfully, but these errors were encountered:
mantine-react-table version
2.0.0-alpha.14
react & react-dom versions
18.2.0
Describe the bug and the steps to reproduce it
I am following the code on the docs but it throws
"[plugin:vite:import-analysis] Failed to resolve import "mantine-react-table/locales/es" from "src\components\DataTable.tsx". Does the file exist?"
Minimal, Reproducible Example - (Optional, but Recommended)
Screenshots or Videos (Optional)
No response
Do you intend to try to help solve this bug with your own PR?
None
Terms
The text was updated successfully, but these errors were encountered: