mantine-datatable icon indicating copy to clipboard operation
mantine-datatable copied to clipboard

MantineProvider not found and this really only Next.js?

Open AddictArts opened this issue 1 year ago • 1 comments

A non Next.js app, just vite, the app is working with Mantine controls, v7. However, when adding the data table I get MantineProvider not found.

Reproduce: Use the component outside Next.js.

It would be nice to have a working example that is not next.js. Thanks in advance.

AddictArts avatar Jul 07 '24 04:07 AddictArts

I was able to solve this for now by deleting the .vite directory prior to launch. This appears to be debug / dev only.

AddictArts avatar Jul 08 '24 21:07 AddictArts

Yes, .vite and .next caches can create such problems sometimes. AFAIK, lots of people are using Mantine DataTable in Vite and/or Remix apps.

icflorescu avatar Aug 07 '24 13:08 icflorescu

Thanks @icflorescu for reference to anyone who comes to this, I was also using deno with something like deno task npm:vite.

AddictArts avatar Aug 07 '24 15:08 AddictArts