You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to build my first Shopify/Remix app and am noticing that the server console.logs are polluted with a ShopifyAPI/Warning message related to a deprecated call to their REST AdminAPI. Docs say I can continue to use this endpoint as long as im using it in a custom app and don't need it for products with a high number of variants.
The problem with the warning is that Vite treats it as an error (actually im not sure who is treating it as an error) and so i get the whole stack trace to the line of code that triggered the Shopify warning, thus polluting my console.log and making it hard to debug things.
Could someone point me in the general direction to suppress this specific log? I don't want to hide all warnings just this one:
[shopify-api/WARNING] API Deprecation Notice 6/28/2024, 11:42:12 AM :
{"message":"https://shopify.dev/api/admin-rest/latest/resources/product","path":"products/count.json"} - Stack Trace: Error
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to build my first Shopify/Remix app and am noticing that the server console.logs are polluted with a ShopifyAPI/Warning message related to a deprecated call to their REST AdminAPI. Docs say I can continue to use this endpoint as long as im using it in a custom app and don't need it for products with a high number of variants.
The problem with the warning is that Vite treats it as an error (actually im not sure who is treating it as an error) and so i get the whole stack trace to the line of code that triggered the Shopify warning, thus polluting my console.log and making it hard to debug things.
Could someone point me in the general direction to suppress this specific log? I don't want to hide all warnings just this one:
Beta Was this translation helpful? Give feedback.
All reactions