Uncaught TypeError: fs.existsSync is not a function
at getElectronPath (webpack-internal:///./node_modules/electron/index.js:7)
1. 请确定你正确导入了fs:const fs = require("fs")
2. 如果导入了,command+单击,看源码的实现
我这里测试是正常的
代码
```
const appDataPath = app.getPath("userData")
const exist = fs.existsSync(appDataPath)
console.log("----------")
console.log(exist)
```
输出
```
[nodemon] starting `electron .`
----------
true
```