When I try to start my application in development mode, it is throwing me the below issue which is related to the web socket
I'm using Angular 13 and below mentioned package versions
"@angular-builders/custom-webpack": "^13.1.0"
"@angular-devkit/architect": "^0.1303.2"
Also, I'm adding the GitHub issue discussion which is gone inactive about the same issue I'm facing
https://github.com/angular/angular-cli/issues/22260
My proxy.config.js file
const PROXY_CONFIG = [
{
context: ['/api',],
target: 'https://localhost:7000',
secure: false
},
{
context: ['/ws'],
target: 'wss://localhost:7000',
secure: false,
ws: true
}
];
module.exports = PROXY_CONFIG;
Angular.json
"serve": {
"builder": "@angular-builders/custom-webpack:dev-server",
"options": {
"browserTarget": "amat-solution-ui:build",
"proxyConfig": "src/proxy.conf.js"
},
"configurations": {
"production": {
"browserTarget": "amat-solution-ui:build:production"
}
}
},
How can I resolve this issue?