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
See this thread: #41940
You could try creating a folder with an index.ts that exports all the third-party components you want to use and put "use client" at the top of the index.ts
Verify canary release
Provide environment information
Which area(s) of Next.js are affected? (leave empty if unsure)
App directory (appDir: true)
Link to the code that reproduces this issue
https://github.com/benton-droplab/export-reproduction
To Reproduce
Describe the Bug
Next throws the following error:
`Unhandled Runtime Error
Error: Unsupported Server Component type: undefined
Call Stack
attemptResolveElement
node_modules/next/dist/compiled/react-server-dom-webpack/server.browser.js (1387:8)
attemptResolveElement
node_modules/next/dist/compiled/react-server-dom-webpack/server.browser.js (1850:20)
resolveModelToJSON
node_modules/next/dist/compiled/react-server-dom-webpack/server.browser.js (1210:13)
stringify
stringify
node_modules/next/dist/compiled/react-server-dom-webpack/server.browser.js (205:13)
processModelChunk
node_modules/next/dist/compiled/react-server-dom-webpack/server.browser.js (2111:25)
retryTask
node_modules/next/dist/compiled/react-server-dom-webpack/server.browser.js (2158:6)
performWork
node_modules/next/dist/compiled/react-server-dom-webpack/server.browser.js (1396:13)
callback
node_modules/next/dist/compiled/react-server-dom-webpack/server.browser.js (67:2)
scheduleWork
node_modules/next/dist/compiled/react-server-dom-webpack/server.browser.js (1395:4)
pingTask
node_modules/next/dist/compiled/react-server-dom-webpack/server.browser.js (1409:13)
process.processTicksAndRejections
node:internal/process/task_queues (95:5)`
Expected Behavior
The component should import without throwing an error.
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
The text was updated successfully, but these errors were encountered: