Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't resolve slash and tilde paths twice #1993

Merged
merged 1 commit into from Sep 6, 2018
Merged

Don't resolve slash and tilde paths twice #1993

merged 1 commit into from Sep 6, 2018

Conversation

chocolateboy
Copy link
Contributor

Fix "Cannot resolve dependency" errors for valid slash and tilde paths.

Before:

/src/js/index.js
  -> /home/user/my-project/src/js/index.js
  -> /home/user/my-project/home/user/my-project/src/js/index.js

Error:

Cannot resolve dependency /home/user/my-project/src/js/index.js

After:

/src/js/index.js
  -> /home/user/my-project/src/js/index.js

The code already has a way for asset-handlers to signal to the bundler that a dependency has been resolved to an absolute path, but it isn't being used.

fixes #1555
fixes #1986

fix "Cannot resolve dependency" error for valid slash and tilde paths

Before:

    /src/js/index.js
      -> /home/user/my-project/src/js/index.js
      -> /home/user/my-project/home/user/my-project/src/js/index.js

Error:

  Cannot resolve dependency /home/user/my-project/src/js/index.js

After:

    /src/js/index.js
      -> /home/user/my-project/src/js/index.js

the code already has a way for asset-handlers to signal to the bundler that a
dependency has been resolved to an absolute path, but it isn't being used

fixes #1555
fixes #1986
@DeMoorJasper DeMoorJasper merged commit d7030f7 into parcel-bundler:master Sep 6, 2018
devongovett pushed a commit that referenced this pull request Oct 15, 2018
Fix "Cannot resolve dependency" errors for valid slash and tilde paths.

Before:

    /src/js/index.js
      -> /home/user/my-project/src/js/index.js
      -> /home/user/my-project/home/user/my-project/src/js/index.js

Error:

    Cannot resolve dependency /home/user/my-project/src/js/index.js

After:

    /src/js/index.js
      -> /home/user/my-project/src/js/index.js

The code already has a way for asset-handlers to signal to the bundler that a dependency has been resolved to an absolute path, but it isn't being used.

fixes #1555
fixes #1986
devongovett pushed a commit that referenced this pull request Oct 15, 2018
Fix "Cannot resolve dependency" errors for valid slash and tilde paths.

Before:

    /src/js/index.js
      -> /home/user/my-project/src/js/index.js
      -> /home/user/my-project/home/user/my-project/src/js/index.js

Error:

    Cannot resolve dependency /home/user/my-project/src/js/index.js

After:

    /src/js/index.js
      -> /home/user/my-project/src/js/index.js

The code already has a way for asset-handlers to signal to the bundler that a dependency has been resolved to an absolute path, but it isn't being used.

fixes #1555
fixes #1986
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot resolve dependency, but file exists Cannot resolve scss dependency when using root / path
2 participants