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.

Can throw ENOTDIR instead of MODULE_NOT_FOUND

See original GitHub issue
require('./CHANGELOG.md/directory');

will throw code MODULE_NOT_FOUND, but

require('resolve').sync('./CHANGELOG.md/directory')

will throw code ENOTDIR.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
loganfsmythcommented, Mar 12, 2017

I first ran across it when using a basedir, but it appears to happen with or without for me.

0reactions
ljharbcommented, Apr 5, 2017

@loganfsmyth thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python - Module Not Found - Stack Overflow
All modules in Python have to have a certain directory structure. You can find details here. Create an empty file called __init__.py under...
Read more >
ModuleNotFoundError: no module named Python Error [Fixed]
Sometimes, Python throws the ModuleNotFoundError afterward. ... as NumPy during import will throw the module not found error as both modules ...
Read more >
Error: Can't resolve 'process/browser' #365 - GitHub
When using 3.1.19 I'm getting the following error: ERROR Failed to compile with 1 errors 11:17:18 error in .
Read more >
Errors | Node.js v19.3.0 Documentation
For all EventEmitter objects, if an 'error' event handler is not provided, the error will be thrown, causing the Node.js process to report...
Read more >
Module not found error even though it shows as installed in ...
I have an example sycript that uses LinkedList module It is imported in the .py scrip via from LinkedList import * the editor...
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