Closed jkbreunig closed 7 months ago
Thanks for reporting, I assume it's a similar issue to https://github.com/formaat-design/reshaped/issues/194, so I'll ship a patch for that today. Does the same happen if you add "use client" to your component?
Does the same happen if you add "use client" to your component?
yes
I've just tried adding it to the Next.js App router starter and it seems to work:
However there is one thing I've thought of – can you make sure your application is wrapped with a Reshaped provider? r
might be a minified name for the function called from the Reshaped context by tabs to assign the keyboard hotkeys for its accessibility
wrapping the application with a Reshaped provider resolved the issue. Thanks!
Describe the bug Including Tabs.List component causes runtime error in Next.JS 14 project
eval node_modules/.pnpm/reshaped@2.5.9_postcss@8.4.31_react-dom@18.2.0_react@18.2.0/node_modules/reshaped/bundle.js (27:45377)
To Reproduce
Expected behavior Using Tabs example should not cause error
Environment (please complete the following information):
"react": "^18", "react-dom": "^18", "next": "^14.0.2", "reshaped": "2.5.9", "typescript": "^5.2.2", "@types/node": "^20.9.0", "@types/react": "^18.2.37", "@types/react-dom": "^18.2.15",
Additional context Removing Tabs.List resolves the error