zarathucorp / shiny-electron-template-windows

Template repository for build Standalone R Shiny application with Electron
MIT License
13 stars 12 forks source link

electron-forge start terminates with error "You must depend on "electron-prebuilt-compile" in your devDependencies" #6

Open ProfessorPeregrine opened 3 days ago

ProfessorPeregrine commented 3 days ago

I am going through the process step-by-step with the default Shiny Geyser app.

Everything seems to work fine until I get to the final step.

If I type electron-forge start, I get this message:

Electron forge was terminated: You must depend on "electron-prebuilt-compile" in your devDependencies

If I type npm start, it starts and the app works.

Screenshot 2024-11-15 090737

electron-forge make gives the same error.

npm run make creates the app and the zipfile.

jhk0530 commented 16 hours ago

Can you show your packages.json and forge.config.js?

ProfessorPeregrine commented 12 hours ago

Sure! I really appreciate this package and I don't take your time for granted. Thank you!

packages.json

{ "name": "roistat", "productName": "roistat", "version": "3.2.0", "description": "An app to make statistics easier to learn, use, and teach", "main": "src/index.js", "scripts": { "start": "electron-forge start", "make": "electron-forge make" }, "keywords": [], "author": { "name": "smouellette", "email": "steve@roi-ally.com" }, "license": "MIT", "repository": { "type": "git", "url": "https://github.com/ProfessorPeregrine/shiny-electron-template-windows" }, "dependencies": { "axios": "0.27.2", "electron-squirrel-startup": "^1.0.0", "esm": "^3.2.25", "execa": "^5.1.1", "pidtree": "^0.6.0" }, "devDependencies": { "@babel/core": "^7.22.20", "@babel/plugin-transform-async-to-generator": "^7.22.5", "@babel/preset-env": "^7.22.20", "@babel/preset-react": "^7.22.15", "@electron-forge/cli": "^7.2.0", "@electron-forge/maker-zip": "^7.2.0", "electron": "^26.2.1", "fs-extra": "^11.1.1" } }

forge.config.js module.exports = { makers: [ { name: '@electron-forge/maker-zip'
} ] };