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.

Error: ENOENT: no such file or directory, scandir '/var/task/user/resources

See original GitHub issue
Error 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:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
hhffcommented, Feb 19, 2019

For anyone else who hits this, we have a fork over here that hard codes the resources: https://github.com/sanctuarycomputer/Shopify-api-node

1reaction
parkerprojectcommented, Jul 23, 2019

@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

Read more comments on GitHub >

github_iconTop 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 >

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