Error: ENOENT: no such file or directory, scandir '/var/task/user/resources
See original GitHub issueError while initializing entrypoint:
{ Error: ENOENT: no such file or directory, scandir '/var/task/user/resources'
I’m seeing this error when trying to use this package with Now v2:
https://shopify-error-qnptwbcf5.now.sh/_logs https://shopify-error-qnptwbcf5.now.sh/_src
const Shopify = require('shopify-api-node');
module.exports = (req, res) => {
res.end(`Hello from Node.js on Now 2.0!`);
};
It’s the only package that I’m importing into my project and when I remove it, the deploy works as expected. Any idea where that’s coming from?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Error: ENOENT: no such file or directory, scandir
I got the error 'Error: ENOENT: no such file or directory, scandir '**/node_modules/node-sass/vendor', this solution helped me resolve it.
Read more >Error: ENOENT: no such file or directory, scandir ... - YouTube
nodejsError: ENOENT : no such file or directory, scandir '**/node_modules/node-sass/vendor' | Module build failed (from .
Read more >Fix "no such file or directory, scandir" - David Walsh Blog
One recent error I ran into was from a dependency of a dependency: ... throw err; ^ Error: ENOENT: no such file or...
Read more >setup: ENOENT: no such file or directory, scandir
I run prismic sm --setup in my project folder and instead of getting promted to create a new repo, this is error logs...
Read more >Nodejs – Error: ENOENT: no such file or directory, scandir ...
I've experience weird moment today when trying to run my friend's gulp script which call node-sass, it throw this error Error: ENOENT: no...
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

For anyone else who hits this, we have a fork over here that hard codes the resources: https://github.com/sanctuarycomputer/Shopify-api-node
@diogoviannaaraujo nope, still having the issue. I just decided to make requests to Shopify API endpoints directly without using this library. You might find this helpful example using axios