TypeError: Object.defineProperties called on a non-object

See original GitHub issue

I haven’t started digging into the shopify-api-node/index.js:158 location yet, but just making an issue thread so when I debug we have a place to find the answer.

Mar 15 17:20:54 real-id app/web.4 TypeError: Object.defineProperties called on non-object
Mar 15 17:20:54 real-id app/web.4     at Function.defineProperties (<anonymous>)
Mar 15 17:20:54 real-id app/web.4     at /app/node_modules/shopify-api-node/index.js:158:18
Mar 15 17:20:54 real-id app/web.4     at runMicrotasks (<anonymous>)
Mar 15 17:20:54 real-id app/web.4     at processTicksAndRejections (internal/process/task_queues.js:93:5)
Mar 15 17:20:54 real-id app/web.4     at async createCheckForOrder (/app/.next/server/pages/api/orders/create-check.js:284:17)
Mar 15 17:20:54 real-id app/web.4     at async /app/.next/server/pages/api/webhooks/shop/order.js:926:14
Mar 15 17:20:54 real-id app/web.4     at async apiResolver (/app/node_modules/next/dist/next-server/server/api-utils.js:8:1)
Mar 15 17:20:54 real-id app/web.4     at async Server.handleApiRequest (/app/node_modules/next/dist/next-server/server/next-server.js:62:403)
Mar 15 17:20:54 real-id app/web.4     at async Object.fn (/app/node_modules/next/dist/next-server/server/next-server.js:54:176)
Mar 15 17:20:54 real-id app/web.4     at async Router.execute (/app/node_modules/next/dist/next-server/server/router.js:23:67)
Mar 15 17:20:54 real-id app/web.4     at async Server.run (/app/node_modules/next/dist/next-server/server/next-server.js:63:656)
Mar 15 17:20:54 real-id app/web.4     at async Server.handleRequest (/app/node_modules/next/dist/next-server/server/next-server.js:33:242)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:16

github_iconTop GitHub Comments

2reactions
tderouincommented, Dec 15, 2021

Whatever.

1reaction
lpincacommented, Dec 28, 2021

@panoply this cannot be caused by dynamic requires. Make sure you are actually calling the methods with the correct arguments. For example, shopify.<resource>.get(null) can cause this error.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Object.defineProperty called on non-object JQUERY ...
I have this error in Jquery when I try to each an array of HTML elements and handle onclick of that element. Object.keys(collapsibles).forEach( ......
Read more >
Uncaught TypeError: Object.defineProperty called on non- ...
I was refactoring all my code to a mono repo, got to the end of what would work with parcel 1, tried parcel...
Read more >
Object.defineProperty() - JavaScript - MDN Web Docs
A TypeError is thrown when attempts are made to change non-configurable property attributes (except value and writable , if permitted), except ...
Read more >
Javascript – TypeError: Object.defineProperty called on ...
I have this error in Jquery when I try to each an array of HTML elements and handle onclick of that element. Object.keys(collapsibles).forEach(function...
Read more >
jquery error
i am getting this error after updating to WordPress 5.6 (latest version):. Uncaught TypeError: Object.defineProperty called on non-object in jquery.min.js:2.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found