{"action":"created","issue":{"url":"https://api.github.com/repos/ant-design/babel-plugin-antd/issues/47","repository_url":"https://api.github.com/repos/ant-design/babel-plugin-antd","labels_url":"https://api.github.com/repos/ant-design/babel-plugin-antd/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/ant-design/babel-plugin-antd/issues/47/comments","events_url":"https://api.github.com/repos/ant-design/babel-plugin-antd/issues/47/events","html_url":"https://github.com/ant-design/babel-plugin-antd/issues/47","id":168497454,"number":47,"title":"css options error","user":{"login":"mydearxym","id":6184465,"avatar_url":"https://avatars.githubusercontent.com/u/6184465?v=3","gravatar_id":"","url":"https://api.github.com/users/mydearxym","html_url":"https://github.com/mydearxym","followers_url":"https://api.github.com/users/mydearxym/followers","following_url":"https://api.github.com/users/mydearxym/following{/other_user}","gists_url":"https://api.github.com/users/mydearxym/gists{/gist_id}","starred_url":"https://api.github.com/users/mydearxym/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mydearxym/subscriptions","organizations_url":"https://api.github.com/users/mydearxym/orgs","repos_url":"https://api.github.com/users/mydearxym/repos","events_url":"https://api.github.com/users/mydearxym/events{/privacy}","received_events_url":"https://api.github.com/users/mydearxym/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-31T02:17:32Z","updated_at":"2016-07-31T09:55:24Z","closed_at":null,"body":"```js\r\n\"babel\": {\r\n    \"presets\": [\r\n      \"es2015-webpack\",\r\n      \"react\",\r\n      \"stage-0\"\r\n    ],\r\n    \"plugins\": [\"antd\", { \"style\": \"css\" } ],\r\n    \"env\": {\r\n      \"production\": {\r\n        \"only\": [\r\n          \"app\"\r\n        ],\r\n        \"plugins\": [\r\n          \"transform-react-remove-prop-types\",\r\n          \"transform-react-constant-elements\",\r\n          \"transform-react-inline-elements\"\r\n        ]\r\n      }\r\n    }\r\n  },\r\n\r\n```\r\n\r\n\r\n\r\n```js\r\nLocalhost: http://localhost:3000\r\n      LAN: http://192.168.31.107:3000\r\n-----------------------------------\r\nPress CTRL-C to stop\r\n\r\nwebpack built ffe827e86599be33d88d in 1361ms\r\n\r\nERROR in ./app/app.js\r\nModule build failed: Error: Plugin 1 specified in \"/Users/xieyiming/code/coder_club/front_end/package.json\" provided an invalid property of \"style\"\r\n    at Plugin.init (/Users/xieyiming/code/coder_club/front_end/node_modules/babel-core/lib/transformation/plugin.js:138:13)\r\n    at Function.normalisePlugin (/Users/xieyiming/code/coder_club/front_end/node_modules/babel-core/lib/transformation/file/options/option-manager.js:147:12)\r\n    at /Users/xieyiming/code/coder_club/front_end/node_modules/babel-core/lib/transformation/file/options/option-manager.js:181:30\r\n    at Array.map (native)\r\n    at Function.normalisePlugins (/Users/xieyiming/code/coder_club/front_end/node_modules/babel-core/lib/transformation/file/options/option-manager.js:153:20)\r\n    at OptionManager.mergeOptions (/Users/xieyiming/code/coder_club/front_end/node_modules/babel-core/lib/transformation/file/options/option-manager.js:245:36)\r\n    at OptionManager.init (/Users/xieyiming/code/coder_club/front_end/node_modules/babel-core/lib/transformation/file/options/option-manager.js:360:12)\r\n    at File.initOptions (/Users/xieyiming/code/coder_club/front_end/node_modules/babel-core/lib/transformation/file/index.js:223:65)\r\n    at new File (/Users/xieyiming/code/coder_club/front_end/node_modules/babel-core/lib/transformation/file/index.js:140:24)\r\n    at Pipeline.transform (/Users/xieyiming/code/coder_club/front_end/node_modules/babel-core/lib/transformation/pipeline.js:46:16)\r\n    at transpile (/Users/xieyiming/code/coder_club/front_end/node_modules/babel-loader/index.js:14:22)\r\n    at Object.module.exports (/Users/xieyiming/code/coder_club/front_end/node_modules/babel-loader/index.js:88:12)\r\n @ multi main\r\nChild html-webpack-plugin for \"index.html\":\r\n```"},"comment":{"url":"https://api.github.com/repos/ant-design/babel-plugin-antd/issues/comments/236421229","html_url":"https://github.com/ant-design/babel-plugin-antd/issues/47#issuecomment-236421229","issue_url":"https://api.github.com/repos/ant-design/babel-plugin-antd/issues/47","id":236421229,"user":{"login":"mydearxym","id":6184465,"avatar_url":"https://avatars.githubusercontent.com/u/6184465?v=3","gravatar_id":"","url":"https://api.github.com/users/mydearxym","html_url":"https://github.com/mydearxym","followers_url":"https://api.github.com/users/mydearxym/followers","following_url":"https://api.github.com/users/mydearxym/following{/other_user}","gists_url":"https://api.github.com/users/mydearxym/gists{/gist_id}","starred_url":"https://api.github.com/users/mydearxym/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mydearxym/subscriptions","organizations_url":"https://api.github.com/users/mydearxym/orgs","repos_url":"https://api.github.com/users/mydearxym/repos","events_url":"https://api.github.com/users/mydearxym/events{/privacy}","received_events_url":"https://api.github.com/users/mydearxym/received_events","type":"User","site_admin":false},"created_at":"2016-07-31T09:55:23Z","updated_at":"2016-07-31T09:55:23Z","body":"thanks @afc163   \r\n\r\ni fix the plugins format, but other error came out: \r\n```js\r\nwebpack built 466c2fff89332aad328d in 10912ms\r\n\r\nERROR in ./app/containers/HomePage/index.js\r\nModule build failed: TypeError: /Users/xieyiming/code/coder_club/front_end/app/containers/HomePage/index.js: Cannot read property '0' of null\r\n    at Buffer._append (/Users/xieyiming/code/coder_club/front_end/node_modules/babel-generator/lib/buffer.js:96:25)\r\n    at Buffer.append (/Users/xieyiming/code/coder_club/front_end/node_modules/babel-generator/lib/buffer.js:68:10)\r\n    at Generator._append (/Users/xieyiming/code/coder_club/front_end/node_modules/babel-generator/lib/printer.js:255:52)\r\n    at Generator.word (/Users/xieyiming/code/coder_club/front_end/node_modules/babel-generator/lib/printer.js:157:10)\r\n    at Generator.Identifier (/Users/xieyiming/code/coder_club/front_end/node_modules/babel-generator/lib/generators/types.js:43:8)\r\n    at /Users/xieyiming/code/coder_club/front_end/node_modules/babel-generator/lib/printer.js:372:23\r\n    at Buffer.withSource (/Users/xieyiming/code/coder_club/front_end/node_modules/babel-generator/lib/buffer.js:180:5)\r\n    at Generator.withSource (/Users/xieyiming/code/coder_club/front_end/node_modules/babel-generator/lib/printer.js:238:15)\r\n    at Generator.print (/Users/xieyiming/code/coder_club/front_end/node_modules/babel-generator/lib/printer.js:371:10)\r\n    at Generator.ImportSpecifier (/Users/xieyiming/code/coder_club/front_end/node_modules/babel-generator/lib/generators/modules.js:22:8)\r\n    at /Users/xieyiming/code/coder_club/front_end/node_modules/babel-generator/lib/printer.js:372:23\r\n    at Buffer.withSource (/Users/xieyiming/code/coder_club/front_end/node_modules/babel-generator/lib/buffer.js:180:5)\r\n    at Generator.withSource (/Users/xieyiming/code/coder_club/front_end/node_modules/babel-generator/lib/printer.js:238:15)\r\n    at Generator.print (/Users/xieyiming/code/coder_club/front_end/node_modules/babel-generator/lib/printer.js:371:10)\r\n    at Generator.printJoin (/Users/xieyiming/code/coder_club/front_end/node_modules/babel-generator/lib/printer.js:443:12)\r\n    at Generator.printList (/Users/xieyiming/code/coder_club/front_end/node_modules/babel-generator/lib/printer.js:507:17)\r\n @ ./app/routes.js 31:129-165\r\n\r\nERROR in chunk main [entry]\r\n1.chunk.js\r\nCannot read property 'id' of null\r\n```\r\n\r\nmaybe  the same with issue #43 "}}
{"actor":{"display_login":"mydearxym"}}