Closed jatins closed 7 years ago
Had you already ejected before attempting this?
No, I did not eject. I just replaced react-scripts
with react-electron-scripts
in devDeps.
Also, update: I was able to get rid of that error by deleting the node_modules and package-lock files and doing a fresh install. (Pretty sure that's a bad idea). Not sure what was causing the error, thought. (Also, the fact that I was also experimenting with lerna makes me even less sure what was causing the issue)
Interesting. I am trying to recreate the issue and getting errors because the template isn't updating (the electron process directory isn't present in my directory, etc.). Did you run into this same issue?
Don't think I got an error like that. Also, just to be clear on how I am using react-electron-scripts
:
create-react-app appName
(No scripts flag)react-scripts
with react-electron-scripts
in devDependencies.So, I am not really using the included template.
Ooo I see, that makes more sense.
I replaced
react-scripts
indevDependencies
in project created bycreate-react-app
with"react-electron-scripts": "^0.4.2"
Running
npm start
results in this error.(Did
npm install
before this)npm -v 5.0.3 node -v v7.3.0 OS macOS ElCapitan