-
-
Notifications
You must be signed in to change notification settings - Fork 513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Built-in templates do not start #3019
Comments
I get the same error above trying to start the typescript template:
|
Oddly, when I do a fresh install with {
"name": "test2",
"productName": "test2",
"version": "1.0.0",
"description": "My Electron application description",
"main": ".webpack/main",
"scripts": {
"start": "electron-forge start",
"package": "electron-forge package",
"make": "electron-forge make",
"publish": "electron-forge publish",
"lint": "echo \"No linting configured\""
},
"keywords": [],
"license": "MIT",
"config": {
"forge": {
"packagerConfig": {},
"makers": [
{
"name": "@electron-forge/maker-squirrel",
"config": {
"name": "test2"
}
},
{
"name": "@electron-forge/maker-zip",
"platforms": [
"darwin"
]
},
{
"name": "@electron-forge/maker-deb",
"config": {}
},
{
"name": "@electron-forge/maker-rpm",
"config": {}
}
],
"plugins": [
[
"@electron-forge/plugin-webpack",
{
"mainConfig": "./webpack.main.config.js",
"renderer": {
"config": "./webpack.renderer.config.js",
"entryPoints": [
{
"html": "./src/index.html",
"js": "./src/renderer.js",
"name": "main_window",
"preload": {
"js": "./src/preload.js"
}
}
]
}
}
]
]
}
},
"devDependencies": {
"@electron-forge/cli": "^6.0.0-beta.64",
"@electron-forge/maker-deb": "^6.0.0-beta.64",
"@electron-forge/maker-rpm": "^6.0.0-beta.64",
"@electron-forge/maker-squirrel": "^6.0.0-beta.64",
"@electron-forge/maker-zip": "^6.0.0-beta.64",
"@electron-forge/plugin-webpack": "6.0.0-beta.64",
"@vercel/webpack-asset-relocator-loader": "1.7.0",
"css-loader": "^6.0.0",
"electron": "21.2.0",
"node-loader": "^2.0.0",
"style-loader": "^3.0.0"
},
"dependencies": {
"electron-squirrel-startup": "^1.0.0"
}
} I'm getting a different error because of the old plugin syntax used in
|
I tried again just now: and the version installed according to |
Hi guys, any manual fixes for the time being? |
@richardabear The manual fix here should be making sure each |
@cwellsx @erikian I've tried to repro on several different computers, and the version is consistently being returned as 6.0.0-beta.70 🤔 Sorry, could you both let me know if you have a global install of electron-forge ( It does seem that when all dependencies are set to beta.70, the |
@VerteDinde I found the issue. When In other words: the forge version you get depends on when When I run |
Just submitted #3030 which unpins the version, so the most recent one will be installed. This doesn't change the outdated versions in the |
As a hack, I find add this to {
"config": {
"forge":{}
}
} Can solve this problem. More details, I think this is cause by So when you use config file, I think I fix this issue in #3029. |
I had hoped so. But doing that, and running npm install, doesn't fix the problem: I still have the same error. Perhaps my template itself needs updating? What does your package.json look like?
I don't think I have it: |
@cwellsx try |
@cwellsx Could you try my fix ? This works on my machine. |
Fixed in b5d0587 |
That installed
This displays a different error: When I add this then The idea for doing that comes from the second list-item of https://www.electronforge.io/configuration which says, "a relative path":
|
√ Checking your system
An unhandled rejection has occurred inside Forge:
|
Pre-flight checklist
Electron Forge version
6.0.0-beta.70
Electron version
v21.2.0
Operating system
Windows 10 Version 21H1 Build 19043.2130
Last known working Electron Forge version
6.0.0-beta.65
Expected behavior
After running the following commands
then the empty application should start.
Actual behavior
test>npm run start
√ Checking your system
√ Locating Application
An unhandled rejection has occurred inside Forge:
Error: package.json for app does not have any devDependencies
Electron Forge was terminated. Location:
{}
Steps to reproduce
See above
Additional information
Running
node_modules\.bin\electron-forge --version
returns this:However according to packages.json it's beta.69 that's installed.
The text was updated successfully, but these errors were encountered: