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
949 stars 68 forks source link

Error upgrading DataTable with Vite from 1.7.17 to 7.5.1 #548

Closed dxavsoul closed 8 months ago

dxavsoul commented 9 months ago

Describe the bug I updated Mantine-DataTable from 1.7.17 to 7.5.1 I have the following error

Error: @mantine/core: MantineProvider was not found in component tree, make sure you have it in your app at useMantineTheme (http://localhost:5173/node_modules/.vite/deps/mantine-datatable.js?v=af5e2253:3067:11) at http://localhost:5173/node_modules/.vite/deps/mantine-datatable.js?v=af5e2253:4293:19 at renderWithHooks (http://localhost:5173/node_modules/.vite/deps/chunk-GVSLPJMJ.js?v=af5e2253:12171:26) at updateForwardRef (http://localhost:5173/node_modules/.vite/deps/chunk-GVSLPJMJ.js?v=af5e2253:14327:28) at beginWork (http://localhost:5173/node_modules/.vite/deps/chunk-GVSLPJMJ.js?v=af5e2253:15934:22) at beginWork$1 (http://localhost:5173/node_modules/.vite/deps/chunk-GVSLPJMJ.js?v=af5e2253:19749:22) at performUnitOfWork (http://localhost:5173/node_modules/.vite/deps/chunk-GVSLPJMJ.js?v=af5e2253:19194:20) at workLoopSync (http://localhost:5173/node_modules/.vite/deps/chunk-GVSLPJMJ.js?v=af5e2253:19133:13) at renderRootSync (http://localhost:5173/node_modules/.vite/deps/chunk-GVSLPJMJ.js?v=af5e2253:19112:15) at recoverFromConcurrentError (http://localhost:5173/node_modules/.vite/deps/chunk-GVSLPJMJ.js?v=af5e2253:18732:28)

To Reproduce Steps to reproduce the behavior:

Upgrade from 1.7.17 to 7.5.1 Project was working but I upgrade to the new one

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Additional context Using a template Vristo

icflorescu commented 9 months ago

Hey @dxavier86, lots of things have changed in both Mantine and Mantine DataTable since this library was at 1.7.x. In fact, I'd be surprised a simple, straightforward upgrade would be possible under the circumstances. For instance, Mantine 7 came with a totally new approach to styling. Are you familiar with these changes?

It would be a good idea to create and post a reproduction on codesandbox or something similar to increase your chances to have a member of the community looking through your code and help you with the issue.

icflorescu commented 8 months ago

Please feel free to reopen if you can come up with a reproduction. Thanks.