Hello there, your boilerplate is working great until I encountered the errors fs.existsSync is not a function and Cannot statically evaluate fs argument after trying to use another npm package. While trying to troubleshoot it, I tried to specify the Parcel targets node and electron by changing the line in package.json from
Hello there, your boilerplate is working great until I encountered the errors
fs.existsSync is not a function
andCannot statically evaluate fs argument
after trying to use another npm package. While trying to troubleshoot it, I tried to specify the Parcel targetsnode
andelectron
by changing the line inpackage.json
fromto
and
However, running
yarn start
no longer launch the Electron app and no server is listening tohttp://localhost:3000
.What is the correct way to set the targets to
node
andelectron
?Thank you very much!
GitHub Repo to reproduce problem: https://github.com/nyxynyx/electron-react-parcel-boilerplate-problem