apiVersion undefined ERROR
See original GitHub issueHow 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,
});

Suggestion: If the apiVersion is missing, why not there is a fallback version set without getting this error.
Thanks
Issue Analytics
- State:
- Created 3 years ago
- Comments:6
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

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-L37Closing as answered. Discussion can continue if needed.