commerce icon indicating copy to clipboard operation
commerce copied to clipboard

[Shopify] Webpack Error whilst trying to add new API operation

Open oliverjarvis opened this issue 3 years ago • 1 comments

I'm trying to get a sense of how to add an API operation, which I've been doing by simply duplicating the getAllProducts api operation, and renaming it very smartly to getAllProducts2. So I'm sure there are many places where this could have gone wrong. I am however pretty stumped.

image

I wish I could give more context. Alternatively I'd love if you could provide a more straightforward guide for adding new operations.

oliverjarvis avatar Mar 24 '22 14:03 oliverjarvis

I figured out it must have something to with not appearing in the commerce api. image

However as you can see I have definitely have it present in my operations.ts file

oliverjarvis avatar Mar 24 '22 14:03 oliverjarvis

Have you figured it out?

agsmartwolf avatar Dec 06 '22 17:12 agsmartwolf

Hey there! Thank you for opening this issue. We have decided to take Next.js Commerce in a new direction and will be closing out current PRs and issues due to this change. Please see this PR for more details: https://github.com/vercel/commerce/pull/966

leerob avatar Apr 18 '23 02:04 leerob