Add @babel/plugin-proposal-class-properties (https://git.io/vb4SL) to the ‘plugins’
と出ているので、インストールします
[vagrant@localhost react]$ npm install –save-dev @babel/plugin-proposal-class-properties
で
.babelrcに以下を追加
{ "plugins": [ "@babel/plugin-proposal-class-properties" ] }
$ npm start
RROR in ../node_modules/react-calendar/dist/Calendar.css 1:0
Module parse failed: Unexpected token (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
> .react-calendar {
| width: 350px;
| max-width: 100%;
@ ../node_modules/react-calendar/dist/entry.js 48:0-25
@ ./js/client.js
ℹ 「wdm」: Failed to compile.
何いいいいいいいいいい
諦めんぞ、俺は。