MONEI / Shopify-api-node

Node Shopify connector sponsored by MONEI
https://monei.com/shopify-payment-gateway/
MIT License
945 stars 278 forks source link

Problem with process.versions.node #528

Closed remigjush closed 2 years ago

remigjush commented 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: obraz

In the background, the query is executing correctly. In Visual Studio Code command - console.log(process.versions.node); gives the correct result: obraz

A request to correct the problem.