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

API Request Failed #124

Open
muhammad-hunnain786 opened this issue Sep 16, 2022 · 0 comments
Open

API Request Failed #124

muhammad-hunnain786 opened this issue Sep 16, 2022 · 0 comments

Comments

@muhammad-hunnain786
Copy link

Issue summary
iam making the shopify app using shopify cli 3.0. all goes well but after installation, the app get crash because of failed api call

i have checked the logs its returning error following error

Cannot find module '/var/task/node_modules/@shopify/shopify-api/dist/rest-resources/2022-07/index.js

as in api we are calling this

const { Product } = await import(
@shopify/shopify-api/dist/rest-resources/${Shopify.Context.API_VERSION}/index.js
);

const countData = await Product.count({ session });
res.status(200).send(countData);

Expected behavior
it should get get the product object and return me the count for of my products

Specifications
Browser: chrome
Device: dell
Operating System: windows 11

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

1 participant