I can't find reference about this anywhere in their website/docs. I need to change this to another port, currently it's stuck in 3000.
Here's how I create an electron project with electron-forge
yarn create electron-app my-new-app --template=typescript
and whenever there is another service in port 3000. It throws an error:
listen EADDRINUSE :::3000
Error: listen EADDRINUSE :::3000
at Server.setupListenHandle [as _listen2] (net.js:1360:14)
my webpack.main.config.js
file:
const path = require('path');
module.exports = {
entry: './src/index.ts',
// Put your normal webpack config below here
module: {
rules: require('./webpack.rules')
},
resolve: {
extensions: ['.js', '.ts', '.jsx', '.tsx', '.css', '.json']
},
devServer: {
contentBase: path.join(__dirname, 'dist'),
compress: true,
port: 9000
}
};