question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

apiVersion undefined ERROR

See original GitHub issue

How to reproduce?

When Initialize the Shopify Instance without apiVersion (In the readme.md, it show apiVersion is optional), getting TypeError: Cannot read property 'apiVersion' error

const shopify = new Shopify({
            shopName,
            accessToken,
        });

image

Suggestion: If the apiVersion is missing, why not there is a fallback version set without getting this error.

Thanks

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
lpincacommented, Aug 14, 2020

You need to specify (apiKey & password) or (accessToken). Those two are mutually exclusive. See https://github.com/MONEI/Shopify-api-node/blob/4f099ffcb84d0ef967267bd440e39e62572fa5a2/index.js#L30-L37

0reactions
lpincacommented, Aug 18, 2020

Closing as answered. Discussion can continue if needed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Editor crashes with error “TypeError: Cannot read property ...
If a block is in the post content which is no longer registered, the editor crashes irretrievably with the error message TypeError: Cannot...
Read more >
Cannot set property 'version' of undefined in Typescript
I am getting below error. Please help me to fix it. Uncaught TypeError: Cannot set property 'version' of undefined at API.version (:5:30) at...
Read more >
1948556 – Cannot read property 'apiGroup' of undefined error ...
Description of problem: Cannot read property 'apiGroup' of undefined error viewing operator CSV Version-Release number of selected component (if ...
Read more >
Invalid Api version specified on URL - Salesforce Help
When a new version of Salesforce is released to Sandbox environments, the default API version of Salesforce is incremented in the Workbench API...
Read more >
ErrorCode (NSO Java API Version 5.7.7) - DevNet
An error occurred in a call to some operating system function, such as write(). ERR_POLICY_COMPILATION_FAILED. A user-defined policy XPath expression could not ...
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