adobe / adobe/aem-project-archetype

react cloud project build error

Open
#973 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
596
Forks
431
Avg merge
10d 6h
Merged PRs (30d)
1

Description

Issue:
Created cloud react project using archetype 37.
On running the command mvn clean install -PautoInstallSinglePackage, frontend build fails with below error.
I am using mac.

[INFO] (node:23960) UnhandledPromiseRejectionWarning: TypeError: Network request failed
[INFO] (node:23960) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 5)
[INFO] events.js:291
[INFO] throw er; // Unhandled 'error' event
[INFO] ^
[INFO]
[INFO] Error: connect ECONNREFUSED 127.0.0.1:80
[INFO] at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1144:16)
[INFO] Emitted 'error' event on ClientRequest instance at:
[INFO] at Socket.socketErrorListener (_http_client.js:427:9)
[INFO] at Socket.emit (events.js:314:20)
[INFO] at emitErrorNT (internal/streams/destroy.js:92:8)
[INFO] at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
[INFO] at processTicksAndRejections (internal/process/task_queues.js:84:21) {
[INFO] errno: 'ECONNREFUSED',
[INFO] code: 'ECONNREFUSED',
[INFO] syscall: 'connect',
[INFO] address: '127.0.0.1',
[INFO] port: 80
[INFO] }
[INFO]

### Expected Behaviour
Build should be successful

### Actual Behaviour
ui.frontend build fails

### Reproduce Scenario (including but not limited to)
Create cloud react project using archetype 37.
mvn -B org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate -D archetypeGroupId=com.adobe.aem -D archetypeArtifactId=aem-project-archetype -D archetypeVersion=37 -D appTitle="Demo" -D appId="demo" -D groupId="com.demo" -D aemVersion="cloud" -D frontendModule="react" -D singleCountry="n"

On running the command mvn clean install -PautoInstallSinglePackage, frontend build fails with below error.

#### Steps to Reproduce

#### Platform and Version
macbook

Contributor guide

Open the contributing guide

Research direction

Reproduce the cloud React archetype 37 project with the provided Maven generation command, then run `mvn clean install -PautoInstallSinglePackage` and inspect the `ui.frontend` build entry point. Trace the failed network request to `127.0.0.1:80` and determine the project-side cause; done means the frontend and full Maven build complete successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js, react
Domain
build-system, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.