Closed baymac closed 5 years ago
I was able to fix this. Add the app/package.json to webpack base config and used the following script in app/package.json:
"scripts": {
"electron-rebuild": "../node_modules/.bin/electron-rebuild --parallel --force --types prod,dev,optional --module-dir .",
"postinstall": "yarn electron-rebuild"
}
In the react boiler plate, I added the package.json from this repo into the /app dir. Also added the script to internals ExternalRebuild.js as in this repository but when I run
yarn
I get following error:Kindly help me fix this. Or if possible let me know how can I integrate serialport into the v0.17.1 version of electron-react-boilerplate. Thanks.