Aquí está el problema:
Inicialicé la aplicación jhipster en local e intenté ejecutarla con npm start y obtuve el siguiente 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) Luego modifiqué webpack/proxy.conf.js a:
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;Se produce el mismo error y el servidor no puede ejecutarse correctamente. ¿Debería probar con la versión de nodo LTS?
Estoy usando:
Jhipster 7.7.0 , Node.js 17.4.0 , todo en Ubuntu 20.04 LTS