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

Issue cloning project from Vercel #135

Closed
AP-monkey opened this issue Feb 8, 2024 · 1 comment
Closed

Issue cloning project from Vercel #135

AP-monkey opened this issue Feb 8, 2024 · 1 comment

Comments

@AP-monkey
Copy link

Hello, I am having many issues deploying the project to Vercel (https://vercel.com/templates/next.js/hull-sanity-shopify).
I tried the automatic path and the manual path, and at both I was stuck. Did anyone else experience any issues deploying the project do vercel and following the instructions?

Following the manual installation, I get the project successfully deployed but I get stuck at this error: "Home Page" is not set in Sanity, or the page data is missing.

while following the automatic installation (to see the demo store) I cannot even deploy it. I added all the Environment Variables and tried to redeploy, but I keep on getting this error:

`
TypeError: Cannot read properties of undefined (reading 'replace')

19:00:54.093 | at /vercel/path0/.next/server/chunks/322.js:1366:31
19:00:54.093 | at Array.map ()
19:00:54.093 | at replaceTemplateTags (/vercel/path0/.next/server/chunks/322.js:1365:18)
19:00:54.093 | at HeadSEO (/vercel/path0/.next/server/chunks/322.js:1245:23)
19:00:54.093 | at Wc (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:68:44)
19:00:54.093 | at Zc (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:70:253)
19:00:54.093 | at Z (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:76:89)
19:00:54.094 | at $c (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:78:98)
19:00:54.094 | at bd (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:77:404)
19:00:54.094 | at Z (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:76:217)
19:00:54.094 |  
19:00:54.094 | Error occurred prerendering page "/". Read more: https://nextjs.org/docs/messages/prerender-error
19:00:54.094 | TypeError: Cannot read properties of undefined (reading 'replace')
19:00:54.094 | at /vercel/path0/.next/server/chunks/322.js:1366:31
19:00:54.094 | at Array.map ()
19:00:54.095 | at replaceTemplateTags (/vercel/path0/.next/server/chunks/322.js:1365:18)
19:00:54.095 | at HeadSEO (/vercel/path0/.next/server/chunks/322.js:1245:23)
19:00:54.095 | at Wc (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:68:44)
19:00:54.095 | at Zc (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:70:253)
19:00:54.095 | at Z (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:76:89)
19:00:54.095 | at $c (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:78:98)
19:00:54.095 | at bd (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:77:404)
19:00:54.095 | at Z (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:76:217)

`

@ndimatteo
Copy link
Owner

Hey there @AP-monkey,

Please reference these comments from other issues:
1.#136 (comment)
2. #119 (comment)

You need to make sure you have all .env variables set in Vercel, and that global site and page data is set in Sanity.

@ndimatteo ndimatteo pinned this issue Feb 23, 2024
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

2 participants