-
-
Notifications
You must be signed in to change notification settings - Fork 608
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
Resolving import/compose css paths in node_module with version 2.0.0 #861
Comments
@mbulfair fixing this error introduce problems in resolving algorithm and can introduce more bugs in future (other developers can forget about using |
Why it is not easy. Let's see on: a {
background: url(@images/image.png);
} Note: Now we resolve this as
What is right resolving? Nobody knows, so we introduced In Why we interpreted Feel free to feedback. |
Seems to me to be the same issue with sass-loader webpack-contrib/sass-loader#556 Somehow resolving was changed in latest release which breaks many project builds. |
@vertic4l it is difference issues, and doesn't exists in
What currently it is break? |
@evilebottnawi well, my issue is gone. we had v0.28.x and the minimize options is gone since v1.0. Thanks anyway! :) Edit: can't remove it... mini-css-extract-plugin breaks without it. |
@vertic4l without |
What is broken? Issue with |
I'm seeing a similar issue, where the NODE_PATH isn't being respected when using For instance:
Having
instead now, only relative paths worth
|
@Amwam what is |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
And don't spam in issue what not related to you, feel free to open new issue, comments not related to this problem will be marked as spam and will be ignored, thanks |
@evilebottnawi Have you already fixed this problem? We have the same problem, when we want to update from version 1.0.0 to 2.1.0 |
@daniel-winter right now no, better always use |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
WIP on this |
/cc @daniel-winter can you provide example with bug, maybe we can solve this problem in other way. |
/cc @klimashkin looks like won't fix Why? Here answer #861 (comment) You example:
One idea to solve: we can try to |
/cc @jquense sorry for delay, i think we need solve this before next major release 👍 Can you help me with this, thanks! |
not sure i understand what the problem is, but it looks related to the resolution changes in v2? |
Let's move discussion in #914 Please give me some feedback, we need search better solution, thanks! |
Expected Behavior
Actual Behavior
Importing with css compose and import to a node module. In version 1.0.1 the
~
was not needed. In 2.0.0 it is. While in my local project I can change any references to this with no issue. However in the node_module/package/file.css if it doesn't have that same~
then webpack/css loader can't resolve the path.Code
Below works with 1x and partially with 2x,
also in the test of css, I am excluding a series of local node_modules, internal only packages. This may be some of the issue.
How Do We Reproduce?
Local File:
Node Module
Error in resolving ☝️ with local webpack build
The text was updated successfully, but these errors were encountered: