Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pnpm build error #1441

Open
beyg2 opened this issue Mar 1, 2025 · 0 comments
Open

pnpm build error #1441

beyg2 opened this issue Mar 1, 2025 · 0 comments

Comments

@beyg2
Copy link

beyg2 commented Mar 1, 2025

Just cloned this setup .env.local for testing locally. did pnpm build and got following error:

"Error occurred prerendering page "/opengraph-image". Read more: https://nextjs.org/docs/messages/prerender-error
TypeError: Invalid URL
at new URL (node:internal/url:818:25)
at fileURLToPath (node:internal/url:1505:12)
at file:///D:/Waleed/commerce/node_modules/.pnpm/[email protected]_react_858a5b292362ff110050dda2f18cc283/node_modules/next/dist/compiled/@vercel/og/index.node.js:18929:32
at ModuleJob.run (node:internal/modules/esm/module_job:271:25)
at async onImport.tracePromise.proto (node:internal/modules/esm/loader:547:26)
at async Object.start (D:\Waleed\commerce.next\server\app\opengraph-image\route.js:1:803)
Export encountered an error on /opengraph-image/route: /opengraph-image, exiting the build.
⨯ Next.js build worker exited with code: 1 and signal: null
 ELIFECYCLE  Command failed with exit code 1."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant