I have been following a tutorial on using Electron with Ionic. All was fine until the final build.
So I put:
npm run windows-build
and get the following:
Error: Cannot find module ‘c:\Users\danny.green\ionic-desktop\src\windows-build.js’
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! firstname.lastname@example.org windows-build:
npm ERR! Exit status 1
npm ERR! Failed at the email@example.com windows-build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.’
Not sure what to try to resolve this, have tried searching the net but can’t find anyone else that has had this issue. There isn’t a windows-build.js fine in src/ which will be the issue, but following this tutorial - https://www.9lessons.info/2018/10/ionic-electron-desktop-app.html it’s not there to manually add anyway.
Any suggestions on how to resolve this?