-
-
Notifications
You must be signed in to change notification settings - Fork 360
Closed
Description
你好,我下载的Home项目引入到项目工程里面,为了方便,我全部放到了components下面,引入和基本流程没有问题。在家里的win10上面启动没有报错,在win7上面启动就报错了,错误原因:
in ./src/components/Index/less/antMotion_style.less
Module build failed: ModuleBuildError: Module build failed: JavaScript evaluation error: 'ReferenceError: colorPalette is not defined'
@ F:\Web\mabyloveProjects\mabylove\weblove\node_modules.2.6.0@antd\lib\button\style\index.less (line 11, column 2)
near lines:
.btn;
.btn-default;
at DependenciesBlock.onModuleBuildFailed (F:\Web\mabyloveProjects\mabylove\weblove\node_modules\.0.6.9@webpack-core\lib\NormalModuleMixin.js:315:19)
at nextLoader (F:\Web\mabyloveProjects\mabylove\weblove\node_modules\.0.6.9@webpack-core\lib\NormalModuleMixin.js:270:31)
at F:\Web\mabyloveProjects\mabylove\weblove\node_modules\.0.6.9@webpack-core\lib\NormalModuleMixin.js:292:15
at context.callback (F:\Web\mabyloveProjects\mabylove\weblove\node_modules\.0.6.9@webpack-core\lib\NormalModuleMixin.js:148:14)
at F:\Web\mabyloveProjects\mabylove\weblove\node_modules\.2.2.3@less-loader\index.js:68:16
at F:\Web\mabyloveProjects\mabylove\weblove\node_modules\.2.6.1@less\lib\less\render.js:33:38
at F:\Web\mabyloveProjects\mabylove\weblove\node_modules\.2.6.1@less\lib\less\parse.js:63:17
at Object.finish [as _finish] (F:\Web\mabyloveProjects\mabylove\weblove\node_modules\.2.6.1@less\lib\less\parser\parser.js:183:28)
at Object.ImportVisitor._onSequencerEmpty (F:\Web\mabyloveProjects\mabylove\weblove\node_modules\.2.6.1@less\lib\less\visitors\import-visitor.js:35:14)
at ImportSequencer.tryRun (F:\Web\mabyloveProjects\mabylove\weblove\node_modules\.2.6.1@less\lib\less\visitors\import-sequencer.js:50:14)
@ ./src/components/Index/index.jsx 57:0-38
便于清晰的认识到:我特意截了图:
构建组件的时候,在index.jsx中出现错误:(其实就是antMotion_style.less样式报错)
希望给一个解决方法。谢谢
KoKuDolly, wangdeweiseven and garrettmaringgustawdaniel, Sherryer, JamesGTang, mnrafg, KoKuDolly and 3 more
Metadata
Metadata
Assignees
Labels
No labels