Just create instrumentaiton.ts and call server-only module
Describe the Bug
You're importing a component that needs server-only. That only works in a Server Component but one of its parents is marked with "use client", so it's a Client Component.
Expected Behavior
It works
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
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 or a replay of the bug
https://codesandbox.io/p/sandbox/elegant-hopper-dd2j6i?file=undefined
To Reproduce
Just create instrumentaiton.ts and call server-only module
Describe the Bug
You're importing a component that needs server-only. That only works in a Server Component but one of its parents is marked with "use client", so it's a Client Component.
Expected Behavior
It works
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response