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.

Uncaught No such file local

See original GitHub issue

Hello everyone, I have a problem where the pdf file is not found even though the path is correct.

Follows code below.

`const options = { printer: “ELGIN-I9” };

	    	printer
	    	  .print("req.pdf", options)
	    	  .then(console.log)
	    	  .catch(console.error);`

I am sorry for my english.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
artiebitscommented, Jan 18, 2020

I’ve created a simple node.js project for you https://github.com/artiebits/pdf-to-printer/pull/97 it works for me on both Mac and Windows. Hope it will help you

0reactions
artiebitscommented, Jan 21, 2020

good to hear your issue solved!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to resolve Nodejs: Error: ENOENT: no such file or directory
Your app is expecting to find a file at /home/embah/node/nodeapp/config/config.json but that file does not exist (which is what ENOENT ...
Read more >
T280246 Error "No such file or directory ... Maintenance.php"
I have checked that the file parse.php is in directory C:\Bitnami\mediawiki-1.35.2-0\apps\mediawiki\htdocs\vendor\wikimedia\parsoid\bin.
Read more >
Error: ENOENT: no such file or directory, open '. /file.json' #9
First you try to console.log(process.csw()) and make sure where is your current directory is! then you can just go like (process.cwd() + "/directory/file.any") ......
Read more >
How to fix: npm ERR! enoent ENOENT: no such file or ...
I recently struggled for a while with an npm error thrown when executing npm install of some package. The error message was npm...
Read more >
Common Error Details - Snowpack
ENOENT: no such file or directory, open …/node_modules/csstype/index.js ... Uncaught SyntaxError: The requested module './XXXXXX.js' does not provide an ...
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