{"action":"created","issue":{"url":"https://api.github.com/repos/babel/babel/issues/8655","repository_url":"https://api.github.com/repos/babel/babel","labels_url":"https://api.github.com/repos/babel/babel/issues/8655/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel/issues/8655/comments","events_url":"https://api.github.com/repos/babel/babel/issues/8655/events","html_url":"https://github.com/babel/babel/issues/8655","id":358344962,"node_id":"MDU6SXNzdWUzNTgzNDQ5NjI=","number":8655,"title":"Support for the experimental syntax 'classProperties' isn't currently enabled","user":{"login":"1Sunn","id":37360185,"node_id":"MDQ6VXNlcjM3MzYwMTg1","avatar_url":"https://avatars3.githubusercontent.com/u/37360185?v=4","gravatar_id":"","url":"https://api.github.com/users/1Sunn","html_url":"https://github.com/1Sunn","followers_url":"https://api.github.com/users/1Sunn/followers","following_url":"https://api.github.com/users/1Sunn/following{/other_user}","gists_url":"https://api.github.com/users/1Sunn/gists{/gist_id}","starred_url":"https://api.github.com/users/1Sunn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1Sunn/subscriptions","organizations_url":"https://api.github.com/users/1Sunn/orgs","repos_url":"https://api.github.com/users/1Sunn/repos","events_url":"https://api.github.com/users/1Sunn/events{/privacy}","received_events_url":"https://api.github.com/users/1Sunn/received_events","type":"User","site_admin":false},"labels":[{"id":441815993,"node_id":"MDU6TGFiZWw0NDE4MTU5OTM=","url":"https://api.github.com/repos/babel/babel/labels/i:%20question","name":"i: question","color":"e99695","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2018-09-09T02:59:10Z","updated_at":"2018-09-30T18:43:41Z","closed_at":"2018-09-10T07:23:36Z","author_association":"NONE","body":"While I was setting up React within Django project I came across this error\r\n\r\nModuleBuildError in Module build failed (from ./node_modules/babel-loader/lib/index.js): SyntaxError: C:\\Users\\1Sun\\Cebula3\\cebula_react\\assets\\js\\index.js: Support for the experimental syntax 'classProperties' isn't currently enabled (17:9):\r\n\r\n```\r\n  15 | \r\n  16 | class BodyPartWrapper extends Component {\r\n> 17 |   state = {\r\n     |         ^\r\n  18 | \r\n  19 |   }\r\n  20 | \r\n\r\nAdd @babel/plugin-proposal-class-properties (https://git.io/vb4SL) to the \r\n'plugins' section of your Babel config to enable transformation.\r\n```\r\n\r\nSo, I installed @babel/plugin-proposal-class-properties and put this in babelrc\r\n\r\n**package.json**\r\n\r\n```\r\n{\r\n  \"name\": \"cebula_react\",\r\n  \"version\": \"1.0.0\",\r\n  \"description\": \"\",\r\n  \"main\": \"index.js\",\r\n  \"scripts\": {\r\n    \"start\": \"webpack-dev-server --config ./webpack.config.js --mode development\",\r\n    \"test\": \"echo \\\"Error: no test specified\\\" && exit 1\",\r\n    \"build\": \"webpack --config prod.config.js\"\r\n  },\r\n  \"keywords\": [],\r\n  \"author\": \"\",\r\n  \"license\": \"ISC\",\r\n  \"babel\": {\r\n    \"presets\": [\r\n      \"@babel/preset-env\",\r\n      \"@babel/preset-react\"\r\n    ]\r\n  },\r\n  \"devDependencies\": {\r\n    \"@babel/cli\": \"^7.0.0\",\r\n    \"@babel/core\": \"^7.0.0\",\r\n    \"@babel/plugin-proposal-class-properties\": \"^7.0.0\",\r\n    \"@babel/preset-env\": \"^7.0.0\",\r\n    \"@babel/preset-react\": \"^7.0.0\",\r\n    \"babel-loader\": \"^8.0.2\",\r\n    \"babel-plugin-transform-class-properties\": \"^6.24.1\",\r\n    \"react-hot-loader\": \"^4.3.6\",\r\n    \"webpack\": \"^4.17.2\",\r\n    \"webpack-bundle-tracker\": \"^0.3.0\",\r\n    \"webpack-cli\": \"^3.1.0\",\r\n    \"webpack-dev-server\": \"^3.1.8\"\r\n  },\r\n  \"dependencies\": {\r\n    \"react\": \"^16.5.0\",\r\n    \"react-dom\": \"^16.5.0\"\r\n  }\r\n}\r\n```\r\n\r\n**babelrc**\r\n\r\n```\r\n{\r\n  \"presets\": [\r\n    \"@babel/preset-env\",\r\n    \"@babel/preset-react\"\r\n  ],\r\n  \"plugins\": [\r\n    \"@babel/plugin-proposal-class-properties\",\r\n  ]\r\n}\r\n```\r\n\r\n\r\nHowever the error is still existed, What is the problem??"},"comment":{"url":"https://api.github.com/repos/babel/babel/issues/comments/425742005","html_url":"https://github.com/babel/babel/issues/8655#issuecomment-425742005","issue_url":"https://api.github.com/repos/babel/babel/issues/8655","id":425742005,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTc0MjAwNQ==","user":{"login":"pratapdd","id":42590130,"node_id":"MDQ6VXNlcjQyNTkwMTMw","avatar_url":"https://avatars3.githubusercontent.com/u/42590130?v=4","gravatar_id":"","url":"https://api.github.com/users/pratapdd","html_url":"https://github.com/pratapdd","followers_url":"https://api.github.com/users/pratapdd/followers","following_url":"https://api.github.com/users/pratapdd/following{/other_user}","gists_url":"https://api.github.com/users/pratapdd/gists{/gist_id}","starred_url":"https://api.github.com/users/pratapdd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pratapdd/subscriptions","organizations_url":"https://api.github.com/users/pratapdd/orgs","repos_url":"https://api.github.com/users/pratapdd/repos","events_url":"https://api.github.com/users/pratapdd/events{/privacy}","received_events_url":"https://api.github.com/users/pratapdd/received_events","type":"User","site_admin":false},"created_at":"2018-09-30T18:43:41Z","updated_at":"2018-09-30T18:43:41Z","author_association":"NONE","body":"thanks that really helped my 3 hour problem.\r\n\r\nmy package.json\r\n  \"devDependencies\": {\r\n    \"@babel/core\": \"^7.1.2\",\r\n    \"@babel/plugin-proposal-class-properties\": \"^7.1.0\",\r\n    \"@babel/preset-env\": \"^7.1.0\",\r\n    \"@babel/preset-es2016\": \"^7.0.0-beta.53\",\r\n    \"@babel/preset-react\": \"^7.0.0\",\r\n    \"@babel/preset-stage-0\": \"^7.0.0\",\r\n    \"@babel/register\": \"^7.0.0\",\r\n    \"babel-cli\": \"^6.26.0\",\r\n    \"babel-loader\": \"^8.0.1\",\r\n    \"babel-minify-webpack-plugin\": \"^0.2.0\",\r\n    \"babel-plugin-transform-class-properties\": \"^6.24.1\",\r\n...\r\n\r\n.babelrc\r\n\r\n{\r\n  \"presets\": [\r\n    \"@babel/preset-env\",\r\n    \"@babel/preset-react\"\r\n  ],\r\n  \"plugins\": [\r\n    \"@babel/plugin-proposal-class-properties\"\r\n  ]\r\n}"}}
{"actor":{"display_login":"pratapdd"}}