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.

Remove all relative requires

See original GitHub issue

Consider mandating use of npm link & remove all relative requires. Prevents issues like #2325 as a result of nondeterminism in path.relative(). Also much easier to reason about 😃

Maybe not in scope for v4 but definitely for future.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:29 (25 by maintainers)

github_iconTop GitHub Comments

1reaction
offerocommented, Mar 16, 2016

💯 that would be great

Seconded.

0reactions
mxstbrcommented, Apr 29, 2016

I’ll close this issue for now, since #2390 is not directly related to this!

Read more comments on GitHub >

github_iconTop Results From Across the Web

deleting all the files inside a directory from a relative path
I have a file inside abc/def/ghi directory. let say a.txt I need to delete this a.txt from abc itself. I have tried pre...
Read more >
Remove all path string from relative path - awk - Stack Overflow
I'm trying to remove all the path and only leave the file name, so it would be like this: dashboard.css icon-apache.png dashboard-commons.js ...
Read more >
escaping relative path require hell in Node.js - Corey Cleary
require () wrapper​​ - to ensure this. So code with relative paths becomes: const add = requireWrapper('helpers/operations/add'); add(2, 3); Rather than something ...
Read more >
Delete (Remove) Files and Directories in Python - PYnative
We can delete a file using both relative path and absolute path. The path is the location of the file on the disk....
Read more >
Remove absolute path support in Dir.open functions #7540
In the case where the application wants to work with either relative or absolute paths, then my suggestion in the description is to...
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