在main.less中导入.less文件时出错

时间:2016-09-19 07:26:37

标签: javascript meteor

我在/client/main.less文件中导入.less个文件。如果我添加多个导入,我会收到错误。如果我只添加一行,没有问题。请帮忙。

// Global namespace

@import "/imports/ui/stylesheets/panel.less";

@import "/imports/ui/stylesheets/menubar.less";

低于错误,

=> Modified -- restarting.
=> Errors prevented startup:

   While minifying app stylesheet:

   C:\Users\lawren\AppData\Local\.meteor\packages\juliancwirko_postcss\1.1.1\plugin.minifier-postcss.os\npm\node_modules\meteor\minifier-postcss\node_mo
dules\source-map\lib\array-set.js:80:9:
   "client/main.less" is not in the set.
   at ArraySet_indexOf
   (C:\Users\lawren\AppData\Local\.meteor\packages\juliancwirko_postcss\1.1.1\plugin.minifier-postcss.os\npm\node_modules\meteor\minifier-postcss\node_m
odules\source-map\lib\array-set.js:80:9)
   at SourceMapGenerator_serializeMappings
   (C:\Users\lawren\AppData\Local\.meteor\packages\juliancwirko_postcss\1.1.1\plugin.minifier-postcss.os\npm\node_modules\meteor\minifier-postcss\node_m
odules\source-map\lib\source-map-generator.js:330:35)
   at SourceMapGenerator_toJSON
   (C:\Users\lawren\AppData\Local\.meteor\packages\juliancwirko_postcss\1.1.1\plugin.minifier-postcss.os\npm\node_modules\meteor\minifier-postcss\node_m
odules\source-map\lib\source-map-generator.js:381:22)
   at SourceMapGenerator_toString
   (C:\Users\lawren\AppData\Local\.meteor\packages\juliancwirko_postcss\1.1.1\plugin.minifier-postcss.os\npm\node_modules\meteor\minifier-postcss\node_m
odules\source-map\lib\source-map-generator.js:401:32)
   at mergeCss (<runJavaScript-45>:295:27)
   at CssToolsMinifier.processFilesForBundle (<runJavaScript-45>:136:18)


=> Your application has errors. Waiting for file change.

0 个答案:

没有答案