Here is the problem:
I initialized jhipster application on local and tried to run it with npm start and got following error:
[webpack-dev-server] [HPM] Error occurred while proxying request localhost:9000/api/account to http://[::1]:8081/ [ECONNREFUSED] (https://nodejs.org/api/errors.html#errors_common_system_errors)
Then I modified webpack/proxy.conf.js to:
function setupProxy({ tls }) {
const conf = [
{
context: ['/api', '/services', '/management', '/v3/api-docs', '/h2-console', '/auth', '/health'],
//target: `http${tls ? 's' : ''}://0.0.0.0:8080`,
target: "http://[::1]:8081",
//secure: false,
//changeOrigin: true,
},
];
return conf;
}
module.exports = setupProxy;
The same error occurs, and server can't run properly. Should I try with LTS node version?
I'm using:
Jhipster 7.7.0, Node.js 17.4.0, all on Ubuntu 20.04 LTS