-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Cannot resolve scss dependency when using root / path #1555
Labels
Comments
This was referenced Sep 5, 2018
DeMoorJasper
pushed a commit
that referenced
this issue
Sep 6, 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 issue
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 issue
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
🐛 bug report
Unable to import a
.scss
file when using an absolute path i.e./src/css/main.scss
🎛 Configuration (.babelrc, package.json, cli command)
Installed parcel-bundler globally with yarn
🤔 Expected Behavior
Compile and include css file
😯 Current Behavior
💁 Possible Solution
Thought there may be something im doing in regards to where the entry point is and where
parcel
is run from but no luck.🔦 Context
Trying to parcel to compile a static site, basic html, js and css.
💻 Code Sample
Example repo: https://github.com/absentees/parcel-test
🌍 Your Environment
The text was updated successfully, but these errors were encountered: