Error building app

Hello.

I’m trying to create a demo app, following the documentation instructions.

When I run (node 20.18.1 LTS, npm 11.0.0)

npx dt-app@latest create

I got a lot of errors ; among them to include this log when opening a support case (which I did but dynatrace support redicected me here).

If instead I use latest node 22.12.10 node LTS (npm 10.9.0) I first get this warning the warning bellow also followed by a long list of errors, and the log in this case is here.

Could somebody please help?

Thanks a lot in advance.

Adrián
npm-debug-22.12.0.log (1.38 MB)
npm-debug-20.18.1.log (1.47 MB)

Hi Adrián,

can you please run and share output of: npx dt-app dev --verbose

Thanks.

Hi Haris.

The command crashed generating the report, as you can see in the third line from bellow.

I attach the command output (node 20.18.1).

Thank you very much.

Best regards.
npx dt-app d-20.18.1.txt (3.43 KB)

Hi Adrian, I’ve checked and couldn’t find much here.

Can you paste a screenshot of the errors you see after entering the environment URL please? Also, I’ve tried replicating on my machine and I couldn’t reproduce the errors.

One note here:

418150 verbose stack Error: Unsupported URL Type: npm:@swc/helpers@=0.4.14<br>418150 verbose stack at parseUrl (/disco_mecanico/temp/dynatrace/node_modules/npm/node_modules/npm-package-arg/npa.js:169:13)<br>418150 verbose stack at npa (/disco_mecanico/temp/dynatrace/node_modules/npm/node_modules/npm-package-arg/npa.js:75:12)<br>418150 verbose stack at resolver (/disco_mecanico/temp/dynatrace/node_modules/npm/lib/install.js:845:42)<br>418150 verbose stack at Timeout._onTimeout (/disco_mecanico/temp/dynatrace/node_modules/npm/lib/install.js:840:7)<br>418150 verbose stack at listOnTimeout (node:internal/timers:594:17)<br>418150 verbose stack at process.processTimers (node:internal/timers:529:7)<br>418151 verbose cwd /disco_mecanico/temp/dynatrace/app-2212<br>418152 error Linux 6.1.0-28-amd64<br>418153 error argv "/home/adi/.nvm/versions/node/v22.12.0/bin/node" "/disco_mecanico/temp/dynatrace/node_modules/.bin/npm" "install"<br>418154 error node v22.12.0<br>418155 error npm v2.15.12<br>418156 error Unsupported URL Type: npm:@swc/helpers@=0.4.14<br>418157 error If you need help, you may report this error at:<br>418157 error <https://github.com/npm/npm/issues><br>418158 verbose exit [ 1, true ]

It seems to be reporting old npm v2.15.12 so there is a dependency issue somewhere in the dev env - maybe deleting dir /disco_mecanico/temp/dynatrace/ and running create again would help?

Hi Dawis.

I deleted the directory and now I’ve been able to build the app.

Thank you very much to you and Haris.

Best regards.