icflorescu / mantine-datatable

The table component for your Mantine data-rich applications, supporting asynchronous data loading, column sorting, custom cell data rendering, context menus, nesting, Gmail-style batch row selection, dark theme, and more.
https://icflorescu.github.io/mantine-datatable/
MIT License
953 stars 69 forks source link

MantineProvider not found and this really only Next.js? #617

Closed AddictArts closed 3 months ago

AddictArts commented 4 months ago

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 commented 4 months ago

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

icflorescu commented 3 months ago

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

AddictArts commented 3 months ago

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