好吧,今天启动项目后-运行时出现以下错误npm run start
> react-scripts start
Starting the development server...
Failed to compile.
./src/index.css (./node_modules/css-loader??ref--6-oneOf-3-1!./node_modules/postcss-loader/src??postcss!./src/index.css)
ReferenceError: EntryViewOpenableBase is not defined
这似乎是一个奇怪的错误,因为我没有接触过 index.css。index.css 的内容是:
body {
margin: 0;
padding: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
"Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
code {
font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
monospace;
}
那么什么会导致这个错误呢?更重要的是,我该如何调试呢?