main.js
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />,document.getElementById('app'));
package.json
{
"name": "project",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start":"webpack-dev-server"
},
"author": "",
"license": "ISC",
"dependencies": {
"babel-core": "^6.26.0",
"babel-loader": "^7.1.2",
"babel-preset-latest": "^6.24.1",
"babel-preset-react": "^6.24.1",
"react": "^16.2.0",
"react-dom": "^16.2.0"
}
}
index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>dome</title>
</head>
<body>
<div id='app'></div>
<script src="index.js"></script>
</body>
</html>`
从哪里看出找不到路径了?
提示
systemFile.statSync is not a function
.