上面的代码显示以下错误:
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
但是,如果我将路径更改为无效的内容:
现在我看到“无法解析文件”以及未解析的变量。这是一个错误还是我做错了什么?
以下是相关文件的文件夹结构:
(root)/
├── styles/
│ ├── vars.less
├── themes/
│ ├── default/
│ └── style.less (the file with the error)