-
-
Notifications
You must be signed in to change notification settings - Fork 525
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
Try other ports when port 9000 is already used #3204
Comments
Or allow us to specify a custom port. |
It looks like you can modify the default port by configuration.🤔 Can you try it? forge/packages/plugin/webpack/src/Config.ts Lines 144 to 146 in 5b40a8d
module.exports = {
//...
plugins: [
{
name: '@electron-forge/plugin-webpack',
config: {
+ loggerPort: 9001,
mainConfig: './webpack.main.config.js',
renderer: {
config: './webpack.renderer.config.js',
entryPoints: [{
name: 'main_window',
html: './src/renderer/index.html',
js: './src/renderer/index.js',
preload: {
js: './src/preload.js'
}
}],
}
}
}
]
//...
} |
Thanks! Indeed this was useful, for sure there was a way to configure it, but the sole fact of it being non-trivial made me create this issue. I suggest one of the following alternatives:
Thanks again! |
Pre-flight checklist
Problem description
When running
npm start
in a just-created project, I saw:Proposed solution
Try other ports when port 9000 is already used.
Alternatives considered
Additional information
Please.
The text was updated successfully, but these errors were encountered: