You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any reason why this was closed? This is still an issue where absolute paths do not get resolved correctly. This includes absolute urls that are generated with variables like @import "@{pathVariable}/foobar";
@n1ru4lCan't resolve './/Users/sum-user/Projects/private/muse-ui/themes/variables/default.less' - seems something is wrong with path. Be good if your show full stack trace of error.
@evilebottnawi I know that something is wrong with the path. Because it should not get prefixed with ./... if you enter cat /Users/sum-user/Projects/private/muse-ui/themes/variables/default.less into the terminal the file contents are shown...
Activity
nicolas-goudry commentedon Jun 30, 2016
I'm also stuck with this issue, any workaround / config to ship ?
Actually I handle that by doing
@import "../../../styles/settings/all";but it's clearly not the right way to do this…In my
webpack.config.js:Also, imports from
node_modulesdoesn't work:@import "~normalize.css/normalize.css";but if I use@import "normalize.css/normalize.css";, it works…vangheem commentedon Nov 17, 2016
Any reason why this was closed? This is still an issue where absolute paths do not get resolved correctly. This includes absolute urls that are generated with variables like
@import "@{pathVariable}/foobar";n1ru4l commentedon May 22, 2017
I can confirm this @vangheem
alexander-akait commentedon May 22, 2017
import using absolute paths can weird and incorrect behavior. Who can demonstrate use case and explain that only with absolute paths is it possible?
n1ru4l commentedon May 22, 2017
I have a use case. I want to load a .less file which includes variables for a theme.
The users should be able to specify the path of the theme.
Atm. absolute paths are prefixed with
./Example:
The webpack output is the following:
alexander-akait commentedon May 22, 2017
@n1ru4l
Can't resolve './/Users/sum-user/Projects/private/muse-ui/themes/variables/default.less'- seems something is wrong with path. Be good if your show full stack trace of error.n1ru4l commentedon May 22, 2017
@evilebottnawi I know that something is wrong with the path. Because it should not get prefixed with
./... if you entercat /Users/sum-user/Projects/private/muse-ui/themes/variables/default.lessinto the terminal the file contents are shown...alexander-akait commentedon May 22, 2017
@n1ru4l I think I can look what's wrong in this week. Now overloaded 😞 Just ping me in friday, if no information here or will not be PR
n1ru4l commentedon May 22, 2017
@evilebottnawi Here is the case, there is nothing more to describe.. https://github.com/n1ru4l/less-loader-absolute-paths
- Splits themes from variables
- Fixes webpack#93
- Fixes webpack#93