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.

Resolve doesn't resolve real path for `basedir` if it is relative path

See original GitHub issue

resolve doesn’t resolve real path for basedir if it is relative path.

I’v created a bad case example ( by lerna ) here https://github.com/malash/resolve-bad-case

The issue is related to https://github.com/browserify/resolve/issues/130 . The issue effected https://github.com/peerigon/extract-loader/issues/48 and may affect https://github.com/browserify/resolve/issues/163 .

@zkochan @ljharb

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:17 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
ljharbcommented, Dec 17, 2018

Thank you for your excellent repro case!

1reaction
malashcommented, Dec 17, 2018

@ljharb Thank you very much for your commit. This commit works for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to reliably resolve a path relative to another?
Temporarily changing the current working directory, and using realpath() : $currentDir = getcwd(); chdir($baseDir); $resolvedPath = realpath($ ...
Read more >
realpath - Manual - PHP
Here is a small and handy method to calculate the relative path from $from to $to. Note: On Windows it does not work...
Read more >
Resolving paths (with absolute symlinks) against a base prefix
Is there any tool to resolve paths inside /mnt prefix before ... --relative-base=DIR looks promising, but actually serves another purpose.
Read more >
Split-Path - PowerShell - Microsoft Learn
The Resolve parameter tells Split-Path to display the items that the split path ... This command determines whether the path is relative or...
Read more >
pathlib — Object-oriented filesystem paths — Python 3.11.1 ...
If the path doesn't exist and strict is True , FileNotFoundError is raised. If strict is False , the path is resolved as...
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