question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot sync shopify with sanity studio

See original GitHub issue

Hey, here is the question. I fully delete the dummy data in the sanity studio of the HULL template.

Screen Shot 2021-08-22 at 11 50 31 PM

But I encounter a new problem. When I deploy the application to Vercel, it constantly fails with this error.



23:44:07.462 | > Build error occurred
-- | --
23:44:07.464 | TypeError: Cannot read property 'split' of null
23:44:07.465 | at /vercel/path0/.next/server/pages/[...slug].js:85:29
23:44:07.465 | at Array.map (<anonymous>)
23:44:07.465 | at getStaticPaths (/vercel/path0/.next/server/pages/[...slug].js:83:74)
23:44:07.466 | at processTicksAndRejections (internal/process/task_queues.js:95:5)
23:44:07.466 | at async buildStaticPaths (/vercel/path0/node_modules/next/dist/build/utils.js:16:80)
23:44:07.466 | at async /vercel/path0/node_modules/next/dist/build/utils.js:26:622
23:44:07.466 | at async Span.traceAsyncFn (/vercel/path0/node_modules/next/dist/telemetry/trace/trace.js:6:584) {
23:44:07.466 | type: 'TypeError'
23:44:07.466 | }

It totally makes sense since there is no product being added to the sanity studio. But since the application fails to deploy to Vercel, there is no way that the Shopify webhooks can be fired, it relies on the live URL. So… I kind of entering a rabbit hole, that without syncing products to sanity studio, the application can not be deployed. Without being deployed, the Shopify products cannot be synced. Is there anything that I can do to roughly set up the application and successfully deploy it to Vercel so as to sync Shopify products to sanity studio?😊

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
xnslxcommented, Aug 23, 2021

My fault. Problem solved.

0reactions
xnslxcommented, Sep 10, 2021

@patrickbjohnson Can I know what is the error message?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sanity Connect for Shopify
You can install Sanity Connect on the Shopify app store to set up synchronization of your product inventory to your content lake. This...
Read more >
Getting started with Sanity Connect for Shopify - YouTube
This video may contain code snippets or concepts that are specific to a previous version of Sanity Studio. In most cases, you can...
Read more >
Sanity Connect for Shopify & Hydrogen - YouTube
Kap and Knut walk you through the recently launched Sanity Connect app for Shopify and show you some cool things you can do...
Read more >
Getting Started with Midway - Ctrl+Alt+Del
This will take you through the sanity setup, once completed your studio should be running locally ... (I do not sync product images...
Read more >
Sanity Connect - Drive remarkable commerce with structured ...
Go beyond templated stores by composing store data into rich content models. Sync Shopify data, including products, variants, and collections, in seconds.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found