>You may need an appropriate loader to handle this file type
githubのissueを見ると、wojtekmaj が、style-loaderを入れろ、って言ってますね。
https://github.com/wojtekmaj/react-calendar/issues/97
$ npm install –save-dev css-loader
$ npm install –save-dev style-loader
で、入れたので、
$ npm start
> .react-calendar {
| width: 350px;
| max-width: 100%;
@ ../node_modules/react-calendar/dist/entry.js 48:0-25
@ ./js/client.js
あ、webpack.config.jsに追加するのね。
rules: [
{
test: /\.css$/i,
use: ['style-loader', 'css-loader'],
},
{
test: /\.jsx?$/,
exclude: /(node_modules|bower_components)/,
use: [{
loader: 'babel-loader',
options: {
presets: ['@babel/preset-react', '@babel/preset-env']
}
}]
}]
で、再度npm start
+ 66 hidden modules
ℹ 「wdm」: Compiled successfully.
OK。あれ、何も表示されない。
なぜえええええええええええええええええええええ