commerce
commerce copied to clipboard
[Shopify] Webpack Error whilst trying to add new API operation
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.
I wish I could give more context. Alternatively I'd love if you could provide a more straightforward guide for adding new operations.
I figured out it must have something to with not appearing in the commerce api.

However as you can see I have definitely have it present in my operations.ts file
Have you figured it out?
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