Closed remigjush closed 2 years ago
I created a default shopify app project based on the tutorial - https://shopify.dev/apps/getting-started/create Stack: node.js, next.js I have installed the npm package - shopify-api-node. in index.js I added:
let Shopify = require("shopify-api-node"); shopify = new Shopify({ shopName: process.env.SHOP, accessToken: accessTokenTemp, }); shopify.order .list() .then((orders) => { create(Object.values(orders).filter((x) => x.tags === "pre-order")); }) .catch((err) => console.error(err));
Result in page:
In the background, the query is executing correctly. In Visual Studio Code command - console.log(process.versions.node); gives the correct result:
A request to correct the problem.
I created a default shopify app project based on the tutorial - https://shopify.dev/apps/getting-started/create Stack: node.js, next.js I have installed the npm package - shopify-api-node. in index.js I added:
Result in page:![obraz](https://user-images.githubusercontent.com/4445633/155032687-9951e8c0-a338-404c-9f53-0fd71aa07970.png)
In the background, the query is executing correctly. In Visual Studio Code command - console.log(process.versions.node); gives the correct result:![obraz](https://user-images.githubusercontent.com/4445633/155032904-9fb1bc97-d0d1-4f93-84aa-f743c18c786e.png)
A request to correct the problem.