Failed to add react+webpack CSS, solve?

the result of configuring cssModule, in webpack-config.js reports an error, and there is no problem with the order.

ERROR in. / ~ / CSSL loader! (webpack) / hot/dev-server.js
Module build failed: Unknown word (7:2)

5 | / globals window webpack_hash /
6 | if (module.hot) {

7 | var lastData;
 |  ^

8 | var upToDate = function upToDate () {
9 | return lastData.indexOf (_ _ webpack_hash__) > = 0;
10 |};

@ (webpack) / hot/dev-server.js 4:14-68 13:2-17:4 14:20-74

ERROR in. / ~ / CSMAL loaderloader.App _ index.js
Module build failed: Unknown word (1:1)

1 | import React from "react";
| ^

2 | import ReactDOM from "react-dom";
3 |
4 | import". / index.css"

@. / app/index.js 6:14-73 15:2-19:4 16:20-79

here is my profile

var path = require ("path");
var webpack = require (" webpack");

module.exports = {

entry: [  
    "webpack/hot/dev-server",
    path.resolve(__dirname, "./app/index.js")
],
output: {
    path: path.resolve(__dirname, "./build"),
    filename: "bundle.js",
},

module: {

loaders: [
  {
    test: /\.jsx?$/,
    loader: "babel-loader",
    exclude: /node_modules/,
    query: {presets: ["es2015", "react"] }
  },
  {
    text: /\.css$/,
    loader:"style-loader!css-loader",
  }
]

},
resolve: {

extensions: ["",".js", ".jsx","css"],

}
};

Feb.28,2021
Menu