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

npm run generate: products (500) #29

Closed
teamgroove opened this issue Apr 12, 2023 · 3 comments
Closed

npm run generate: products (500) #29

teamgroove opened this issue Apr 12, 2023 · 3 comments

Comments

@teamgroove
Copy link

image
after: npm run generate, i cannot view the products-page - but the rest works. hwo come?

I configured my GQL_HOST-endpoint correctly, i guess.

Any suggestions?

@scottyzen
Copy link
Owner

Hey, I'm not sure what's happening. If you send me your GraphQL endpoint, I'll be happy to take a look.

hello@scottyzen.com

@geyermichael
Copy link

geyermichael commented Apr 22, 2023

I run into the same error.
The problem was an undefined in image.sourceUrl caused by the woocommerce default product "Woo Singles".
Idk why, but deleting this product, all works fine for me.

@teamgroove run npm run dev and check your console in the browser. There should be an error when visiting /products.
I find the product by using the following code inside ProductGrid.vue

products.value.forEach((product) => {
  if (!product.image?.sourceUrl) {
    console.log('product error', product);
  }
});

@scottyzen awesome project btw. I hope to contribute some time.

@scottyzen
Copy link
Owner

Hey @teamgroove & @geyermichael. Really appreciate the feedback on this one. It was a tricky one to spot! Everything should be working now. Thanks again 🤙🏻

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

3 participants