{"action":"created","issue":{"url":"https://api.github.com/repos/ant-design/ant-motion/issues/44","repository_url":"https://api.github.com/repos/ant-design/ant-motion","labels_url":"https://api.github.com/repos/ant-design/ant-motion/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/ant-design/ant-motion/issues/44/comments","events_url":"https://api.github.com/repos/ant-design/ant-motion/issues/44/events","html_url":"https://github.com/ant-design/ant-motion/issues/44","id":198614552,"node_id":"MDU6SXNzdWUxOTg2MTQ1NTI=","number":44,"title":"模版代码下载下来导入到dva搭建的项目里面，启动时报错(npm start)","user":{"login":"Liuqing650","id":22534368,"node_id":"MDQ6VXNlcjIyNTM0MzY4","avatar_url":"https://avatars0.githubusercontent.com/u/22534368?v=4","gravatar_id":"","url":"https://api.github.com/users/Liuqing650","html_url":"https://github.com/Liuqing650","followers_url":"https://api.github.com/users/Liuqing650/followers","following_url":"https://api.github.com/users/Liuqing650/following{/other_user}","gists_url":"https://api.github.com/users/Liuqing650/gists{/gist_id}","starred_url":"https://api.github.com/users/Liuqing650/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Liuqing650/subscriptions","organizations_url":"https://api.github.com/users/Liuqing650/orgs","repos_url":"https://api.github.com/users/Liuqing650/repos","events_url":"https://api.github.com/users/Liuqing650/events{/privacy}","received_events_url":"https://api.github.com/users/Liuqing650/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":28,"created_at":"2017-01-04T02:02:52Z","updated_at":"2018-11-07T04:19:28Z","closed_at":"2017-01-04T07:14:12Z","author_association":"NONE","body":"你好，我下载的Home项目引入到项目工程里面，为了方便，我全部放到了components下面，引入和基本流程没有问题。在家里的win10上面启动没有报错，在win7上面启动就报错了，错误原因：\r\nin ./src/components/Index/less/antMotion_style.less\r\nModule build failed: ModuleBuildError: Module build failed: JavaScript evaluation error: 'ReferenceError: colorPalette is not defined'\r\n @ F:\\Web\\mabyloveProjects\\mabylove\\weblove\\node_modules\\.2.6.0@antd\\lib\\button\\style\\index.less (line 11, column 2)\r\n near lines:\r\n     .btn;\r\n     .btn-default;\r\n   \r\n    at DependenciesBlock.onModuleBuildFailed (F:\\Web\\mabyloveProjects\\mabylove\\weblove\\node_modules\\.0.6.9@webpack-core\\lib\\NormalModuleMixin.js:315:19)\r\n    at nextLoader (F:\\Web\\mabyloveProjects\\mabylove\\weblove\\node_modules\\.0.6.9@webpack-core\\lib\\NormalModuleMixin.js:270:31)\r\n    at F:\\Web\\mabyloveProjects\\mabylove\\weblove\\node_modules\\.0.6.9@webpack-core\\lib\\NormalModuleMixin.js:292:15\r\n    at context.callback (F:\\Web\\mabyloveProjects\\mabylove\\weblove\\node_modules\\.0.6.9@webpack-core\\lib\\NormalModuleMixin.js:148:14)\r\n    at F:\\Web\\mabyloveProjects\\mabylove\\weblove\\node_modules\\.2.2.3@less-loader\\index.js:68:16\r\n    at F:\\Web\\mabyloveProjects\\mabylove\\weblove\\node_modules\\.2.6.1@less\\lib\\less\\render.js:33:38\r\n    at F:\\Web\\mabyloveProjects\\mabylove\\weblove\\node_modules\\.2.6.1@less\\lib\\less\\parse.js:63:17\r\n    at Object.finish [as _finish] (F:\\Web\\mabyloveProjects\\mabylove\\weblove\\node_modules\\.2.6.1@less\\lib\\less\\parser\\parser.js:183:28)\r\n    at Object.ImportVisitor._onSequencerEmpty (F:\\Web\\mabyloveProjects\\mabylove\\weblove\\node_modules\\.2.6.1@less\\lib\\less\\visitors\\import-visitor.js:35:14)\r\n    at ImportSequencer.tryRun (F:\\Web\\mabyloveProjects\\mabylove\\weblove\\node_modules\\.2.6.1@less\\lib\\less\\visitors\\import-sequencer.js:50:14)\r\n @ ./src/components/Index/index.jsx 57:0-38\r\n\r\n便于清晰的认识到：我特意截了图：\r\n[构建组件的时候，在index.jsx中出现错误：(其实就是antMotion_style.less样式报错)](http://123.207.100.248/mabylove/error/images/antMontion_error1.png)\r\n\r\n[接着就是错误的位置啦](http://123.207.100.248/mabylove/error/images/antMontion_error2.png)\r\n\r\n[接上一个的错误的具体位置](http://123.207.100.248/mabylove/error/images/antMontion_error3.png)\r\n\r\n希望给一个解决方法。谢谢"},"comment":{"url":"https://api.github.com/repos/ant-design/ant-motion/issues/comments/436499930","html_url":"https://github.com/ant-design/ant-motion/issues/44#issuecomment-436499930","issue_url":"https://api.github.com/repos/ant-design/ant-motion/issues/44","id":436499930,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNjQ5OTkzMA==","user":{"login":"xuCesar","id":13073787,"node_id":"MDQ6VXNlcjEzMDczNzg3","avatar_url":"https://avatars3.githubusercontent.com/u/13073787?v=4","gravatar_id":"","url":"https://api.github.com/users/xuCesar","html_url":"https://github.com/xuCesar","followers_url":"https://api.github.com/users/xuCesar/followers","following_url":"https://api.github.com/users/xuCesar/following{/other_user}","gists_url":"https://api.github.com/users/xuCesar/gists{/gist_id}","starred_url":"https://api.github.com/users/xuCesar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xuCesar/subscriptions","organizations_url":"https://api.github.com/users/xuCesar/orgs","repos_url":"https://api.github.com/users/xuCesar/repos","events_url":"https://api.github.com/users/xuCesar/events{/privacy}","received_events_url":"https://api.github.com/users/xuCesar/received_events","type":"User","site_admin":false},"created_at":"2018-11-07T04:19:28Z","updated_at":"2018-11-07T04:19:28Z","author_association":"NONE","body":"遇到了同样的问题。\r\n可能是less版本引起的问题，降低了react-app-rewire-less的版本到2.1.1"}}
{"actor":{"display_login":"xuCesar"}}