sword工程启动时报错

Sword 未结 1 783
汤姆凯特
汤姆凯特 剑童 2021-06-18 10:14

一、该问题的重现步骤是什么?

1. 

2. 

3.


二、你期待的结果是什么?实际看到的又是什么?


三、你正在使用的是什么产品,什么版本?在什么操作系统上?


四、请提供详细的错误堆栈信息,这很重要。


五、若有更多详细信息,请在下面提供。

Error occurred compiling file D:/01 meplat/280/sword/src/pages/Dashboard/Workplace.less

Error LessError: Cannot find module '@/utils/utils.less' from 'D:\01 meplat\280\sword\src\pages\Dashboard'

    at module.exports (D:\01 meplat\280\sword\node_modules\antd-theme-generator\node_modules\resolve\lib\sync.js:33:11)

    at NpmFileManager.resolve (D:\01 meplat\280\sword\node_modules\antd-theme-generator\node_modules\less-plugin-npm-import\lib\npm-file-manager.js:29:16)

    at NpmFileManager.loadFile (D:\01 meplat\280\sword\node_modules\antd-theme-generator\node_modules\less-plugin-npm-import\lib\npm-file-manager.js:52:29)

    at ImportManager.push (D:\01 meplat\280\sword\node_modules\antd-theme-generator\node_modules\less\lib\less\import-manager.js:152:35)

    at ImportVisitor.processImportNode (D:\01 meplat\280\sword\node_modules\antd-theme-generator\node_modules\less\lib\less\visitors\import-visitor.js:88:28)

    at ImportVisitor.visitImport (D:\01 meplat\280\sword\node_modules\antd-theme-generator\node_modules\less\lib\less\visitors\import-visitor.js:50:22)

    at Visitor.visit (D:\01 meplat\280\sword\node_modules\antd-theme-generator\node_modules\less\lib\less\visitors\visitor.js:76:32)

    at Visitor.visitArray (D:\01 meplat\280\sword\node_modules\antd-theme-generator\node_modules\less\lib\less\visitors\visitor.js:102:22)

    at Ruleset.accept (D:\01 meplat\280\sword\node_modules\antd-theme-generator\node_modules\less\lib\less\tree\ruleset.js:40:30)

    at Visitor.visit (D:\01 meplat\280\sword\node_modules\antd-theme-generator\node_modules\less\lib\less\visitors\visitor.js:83:18)

    at ImportVisitor.run (D:\01 meplat\280\sword\node_modules\antd-theme-generator\node_modules\less\lib\less\visitors\import-visitor.js:23:27)

    at Object.parse (D:\01 meplat\280\sword\node_modules\antd-theme-generator\node_modules\less\lib\less\parser\parser.js:246:22)

    at Object.parse (D:\01 meplat\280\sword\node_modules\antd-theme-generator\node_modules\less\lib\less\parse.js:84:18)

    at Object.render (D:\01 meplat\280\sword\node_modules\antd-theme-generator\node_modules\less\lib\less\render.js:29:18)

    at D:\01 meplat\280\sword\node_modules\antd-theme-generator\node_modules\less\lib\less\render.js:20:24

    at new Promise (<anonymous>) {

  type: 'Syntax',

  filename: 'D:\\01 meplat\\280\\sword\\src\\pages\\Dashboard\\Workplace.less',

  index: 129,

  line: 3,

  column: 0,

  callLine: NaN,

  callExtract: undefined,

  extract: [

    "@import '~antd/lib/style/themes/default.less';",

    "@import '~@/utils/utils.less';",





1条回答
  • 路径不对,找不到@/utils/utils.less这个文件。

    0 讨论(1)
提交回复