lessc.cmd找不到@import文件,路径解析好了吗?

时间:2018-03-27 17:11:24

标签: less webstorm css-import

enter image description here

以上代码显示以下错误:

cmd.exe /D /C call C:/Users/<user>/AppData/Roaming/npm/lessc.cmd --no-color style.less
FileError: '/styles/vars.less' wasn't found. Tried - /styles/vars.less,D:\projects\ui\themes\default\styles\vars.less in D:\projects\ui\themes\default\style.less on line 1, column 1:
1 @import "/styles/vars.less";
2 


Process finished with exit code 1

但如果我改变路径无效:

enter image description here

现在我看到&#34;无法解析文件&#34;以及未解决的变量。这是一个错误还是我做错了什么?

以下是相关文件的文件夹结构:

(root)/
├── styles/
│   ├── vars.less
├── themes/
│   ├── default/
│       └── style.less (the file with the error)

0 个答案:

没有答案