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