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 encountering an issue when compiling my UI component package using Rollup in a Turborepo monorepo setup.
I am using Next.js 15 and compiling the UI package located in packages/ui with Rollup. The basic compilation works fine, but when using rollup-plugin-dts, I get an error related to @tanstack/react-table, stating that the type definitions cannot be found.
Below is the relevant part of my rollup.config.js:
The error suggests that Rollup dts cannot resolve the types from @tanstack/react-table. Is there a way to properly configure Rollup to resolve these types correctly?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I am encountering an issue when compiling my UI component package using Rollup in a Turborepo monorepo setup.
I am using Next.js 15 and compiling the UI package located in packages/ui with Rollup. The basic compilation works fine, but when using rollup-plugin-dts, I get an error related to @tanstack/react-table, stating that the type definitions cannot be found.
Below is the relevant part of my rollup.config.js:
Here is my tsconfig.json:
I am using @tanstack/[email protected].
The error suggests that Rollup dts cannot resolve the types from @tanstack/react-table. Is there a way to properly configure Rollup to resolve these types correctly?
Any guidance would be greatly appreciated.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions