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
All the examples build and work very well locally and on GitHub code spaces. However, when trying to deploy to Vercel, it fails and shows the following error.
../../lib/nthul/src/server/server-target/server-target.tsx:2:25
Type error: Cannot find module 'next/headers' or its corresponding type declarations.
Expected behavior: The app should build and deploy normally on Vercel.
Provide environment information
Vercel
Tested with node 16, 18 and 20. Fails on all.
Which area(s) are affected? (Select all that apply)
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Link to the code that reproduces this issue
https://github.com/mayank1513/nextjs-themes-ultralight
To Reproduce
Current vs. Expected behavior
All the examples build and work very well locally and on GitHub code spaces. However, when trying to deploy to Vercel, it fails and shows the following error.
Expected behavior: The app should build and deploy normally on Vercel.
Provide environment information
Which area(s) are affected? (Select all that apply)
Package manager (npm, pnpm, Yarn), Turbopack (--turbo), TypeScript (plugin, built-in types)
Which stage(s) are affected? (Select all that apply)
Vercel (Deployed)
Additional context
No response
The text was updated successfully, but these errors were encountered: