Error

./node_modules/react-datepicker/dist/react-datepicker.css Syntax error: E:\xampp01\htdocs\node_modules\react-datepicker\dist\react-datepicker.css Unknown word (2:7) import API from "!../../style-loader/dist/runtime/injectStylesIntoStyleTag.js";

Solution

test: /\.css$/i, use: ['css-loader', 'style-loader','sass-loader'], include: path.resolve(__dirname, '../src'), //Add this line