Skip to content
Source
Sign inSign up
TanStack/table

Getting errors when running the mantine-react-table example on MacOS #6329

Closedboggye(GitHub profile, opens in a new tab) opened this issue 1 comment

TanStack Table version

9.0.0-beta.12

Framework/Library version

19.2.7

Describe the bug and the steps to reproduce it

Hi,

I am using MacOS Sonoma 14.8.2 (23J126).

I cloned your table repository locally in the tanstack-table folder and I tried to run the mantine-react-table example using the pnpm install and pnpm dev commands inside the tanstack-table/examples/react/mantine-react-table folder. When I open the page I do get these errors:

9:14:14 AM [vite] Internal server error: Failed to resolve import "@tanstack/react-table" from "src/mantine-react-table/utils/tanstack.helpers.ts". Does the file exist?
  Plugin: vite:import-analysis
  File: /Users/bog/javascript/tanstack-table/examples/react/mantine-react-table/src/mantine-react-table/utils/tanstack.helpers.ts:4:7
  1  |  import { constructRow as _createRow, flexRender as _flexRender } from "@tanstack/react-table";
     |                                                                         ^
  2  |  import { getAllLeafColumnDefs, getColumnId } from "./column.utils";
  3  |  export const flexRender = _flexRender;
      at TransformPluginContext._formatLog (file:///Users/bog/javascript/tanstack-table/node_modules/.pnpm/vite@8.0.16_@types+node@25.9.2_esbuild@0.28.0_jiti@2.7.0_less@4.6.4_sass@1.100.0_sugars_d1e2dfc07a82e8bee92f61ab1557ae06/node_modules/vite/dist/node/chunks/node.js:30602:39)
      at TransformPluginContext.error (file:///Users/bog/javascript/tanstack-table/node_modules/.pnpm/vite@8.0.16_@types+node@25.9.2_esbuild@0.28.0_jiti@2.7.0_less@4.6.4_sass@1.100.0_sugars_d1e2dfc07a82e8bee92f61ab1557ae06/node_modules/vite/dist/node/chunks/node.js:30599:14)
      at normalizeUrl (file:///Users/bog/javascript/tanstack-table/node_modules/.pnpm/vite@8.0.16_@types+node@25.9.2_esbuild@0.28.0_jiti@2.7.0_less@4.6.4_sass@1.100.0_sugars_d1e2dfc07a82e8bee92f61ab1557ae06/node_modules/vite/dist/node/chunks/node.js:27842:18)
      at async file:///Users/bog/javascript/tanstack-table/node_modules/.pnpm/vite@8.0.16_@types+node@25.9.2_esbuild@0.28.0_jiti@2.7.0_less@4.6.4_sass@1.100.0_sugars_d1e2dfc07a82e8bee92f61ab1557ae06/node_modules/vite/dist/node/chunks/node.js:27905:30
      at async Promise.all (index 0)
      at async TransformPluginContext.transform (file:///Users/bog/javascript/tanstack-table/node_modules/.pnpm/vite@8.0.16_@types+node@25.9.2_esbuild@0.28.0_jiti@2.7.0_less@4.6.4_sass@1.100.0_sugars_d1e2dfc07a82e8bee92f61ab1557ae06/node_modules/vite/dist/node/chunks/node.js:27873:4)
      at async EnvironmentPluginContainer.transform (file:///Users/bog/javascript/tanstack-table/node_modules/.pnpm/vite@8.0.16_@types+node@25.9.2_esbuild@0.28.0_jiti@2.7.0_less@4.6.4_sass@1.100.0_sugars_d1e2dfc07a82e8bee92f61ab1557ae06/node_modules/vite/dist/node/chunks/node.js:30387:14)

The problem might be the symlinks - node_modules/@tanstack/react-table inside mantine-react-table is a symlink.

Any idea on how to fix these errors?

Thank you

Update: Found this: https://github.com/pnpm/pnpm/issues/9973 . It might be related. I use pnpm 11.5.2.

n/a

Screenshots or Videos (Optional)

No response

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

None

Terms & Code of Conduct

  • I agree to follow this project's Code of Conduct
  • I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
  1. I ran this command: pnpm --filter @tanstack/match-sorter-utils --filter @tanstack/table-core --filter @tanstack/react-table run build and then pnpm dev in the examples/react/mantine-react-table and it worked!

Sign in to join this conversation.