Hello Everyone,
I have created a shopify remix app I want to make a metaobject using shopify API but when I use this I get a shopify API error like the one below.
X [ERROR] No matching export in “node_modules/@shopify/shopify-api/dist/esm/lib/index.mjs” for import
“Shopify” app/routes/auth.login/route.jsx:96:9:
import { Shopify } from “@shopify/shopify-api”;
Cannot find module 'D:\files\deal-update\deal\node_modules\@shopify\shopify-api\dist\esm\runtime\index.mjs' imported from D:\files\deal-update\deal\node_modules\@shopify\shopify-app-remix\dist\esm\server\adapters\node\index.mjs
Did you mean to import "@shopify/shopify-api/dist/cjs/runtime/index.js"?
hey did you get any solution i am getting this error i think its quite similar.
The { Shopify } export was removed. Try using shopifyApi(...) from @shopify/shopify-api instead, and avoid deep imports like dist/esm. You may want to post in the Shopify Dev Community for more help