Skip to content

Error: Exit 2 on wc-dev start #13149

@LukasMetzger

Description

@LukasMetzger

Bug Description

After creating a new web component project via the command npm init @ui5/webcomponents-package and installing the corresponding node modules, the live server only starts a few times (package version = "@ui5/webcomponents-tools": "2.19.2"). After installing package @ui5/webcomponents version 2.19.2, both the start and build scripts throw the following error:

`Error executing commands: Error: Exit 2
at ChildProcess. (/home/user/projects/example-project/node_modules/@ui5/webcomponents-tools/bin/ui5nps.js:231:38)
at ChildProcess.emit (node:events:536:35)
at maybeClose (node:internal/child_process:1101:16)
at ChildProcess._handle.onexit (node:internal/child_process:304:5)
node:child_process:957
throw err;
^

Error: Command failed: ui5nps "start"
at genericNodeError (node:internal/errors:983:15)
at wrappedFn (node:internal/errors:537:14)
at checkExecSyncError (node:child_process:882:11)
at Object.execSync (node:child_process:954:15)
at Object. (/home/user/projects/example-project/node_modules/@ui5/webcomponents-tools/bin/dev.js:22:15)
at Module._compile (node:internal/modules/cjs/loader:1562:14)
at Object..js (node:internal/modules/cjs/loader:1699:10)
at Module.load (node:internal/modules/cjs/loader:1313:32)
at Function._load (node:internal/modules/cjs/loader:1123:12)
at TracingChannel.traceSync (node:diagnostics_channel:322:14) {
status: 1,
signal: null,
output: [ null, null, null ],
pid: 25208,
stdout: null,
stderr: null
}`

Affected Component

@ui5/webcomponents-tools

Expected Behaviour

The command wc-dev start should start the live server as usual

Isolated Example

No response

Steps to Reproduce

  1. Create a new component by using npm init @ui5/webcomponents-package
  2. Install package @ui5/webcomponents using npm install @ui5/webcomponents
  3. Try to start the webserver using npm runs start

Log Output, Stack Trace or Screenshots

@example-project start
wc-dev start

Error executing commands: Error: Exit 2
at ChildProcess. (/home/user/projects/example-project/node_modules/@ui5/webcomponents-tools/bin/ui5nps.js:231:38)
at ChildProcess.emit (node:events:536:35)
at maybeClose (node:internal/child_process:1101:16)
at ChildProcess._handle.onexit (node:internal/child_process:304:5)
node:child_process:957
throw err;
^

Error: Command failed: ui5nps "start"
at genericNodeError (node:internal/errors:983:15)
at wrappedFn (node:internal/errors:537:14)
at checkExecSyncError (node:child_process:882:11)
at Object.execSync (node:child_process:954:15)
at Object. (/home/user/projects/example-project/node_modules/@ui5/webcomponents-tools/bin/dev.js:22:15)
at Module._compile (node:internal/modules/cjs/loader:1562:14)
at Object..js (node:internal/modules/cjs/loader:1699:10)
at Module.load (node:internal/modules/cjs/loader:1313:32)
at Function._load (node:internal/modules/cjs/loader:1123:12)
at TracingChannel.traceSync (node:diagnostics_channel:322:14) {
status: 1,
signal: null,
output: [ null, null, null ],
pid: 25208,
stdout: null,
stderr: null
}

Priority

High

UI5 Web Components Version

2.19.2

Browser

Chrome, Edge

Operating System

No response

Additional Context

No response

Organization

No response

Declaration

  • I’m not disclosing any internal or sensitive information.

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions