Trying to build an addon, getting the error (more within)

The command '/bin/ash -o pipefail -c npm run build > build_output.log 2>&1 || (cat build_output.log && exit 1)' returned a non-zero code: 1

My addon is here, on Github

Unfortunately I haven’t a clue where to look for more verbose logging, as you can see on github I’ve got (I think!) the most verbose logging enabled I can.

If anyone has any tips or time to help me develop this would be very very grateful!

Thanks

What’s in it?

I wish I knew where to find it! :smile:

Might be clearer if you remove > build_output.log 2>&1 || (cat build_output.log && exit 1)

Ok so just get rid of that entire line?

Not the entire line, ofc. Just the part I quoted.

D’oh, sorry. That’ll teach me to (try) to multitask!!

New error is : The command '/bin/ash -o pipefail -c npm run build' returned a non-zero code: 2

Supervisor log is

/usr/src/app/node_modules/@types/node/process.d.ts
/usr/src/app/node_modules/@types/node/punycode.d.ts
/usr/src/app/node_modules/@types/node/querystring.d.ts
/usr/src/app/node_modules/@types/node/readline.d.ts
/usr/src/app/node_modules/@types/node/repl.d.ts
/usr/src/app/node_modules/@types/node/stream.d.ts
/usr/src/app/node_modules/@types/node/stream/promises.d.ts
/usr/src/app/node_modules/@types/node/stream/consumers.d.ts
/usr/src/app/node_modules/@types/node/stream/web.d.ts
/usr/src/app/node_modules/@types/node/string_decoder.d.ts
/usr/src/app/node_modules/@types/node/timers.d.ts
/usr/src/app/node_modules/@types/node/timers/promises.d.ts
/usr/src/app/node_modules/@types/node/tls.d.ts
/usr/src/app/node_modules/@types/node/trace_events.d.ts
/usr/src/app/node_modules/@types/node/tty.d.ts
/usr/src/app/node_modules/@types/node/url.d.ts
/usr/src/app/node_modules/@types/node/util.d.ts
/usr/src/app/node_modules/@types/node/v8.d.ts
/usr/src/app/node_modules/@types/node/vm.d.ts
/usr/src/app/node_modules/@types/node/wasi.d.ts
/usr/src/app/node_modules/@types/node/worker_threads.d.ts
/usr/src/app/node_modules/@types/node/zlib.d.ts
/usr/src/app/node_modules/@types/node/globals.global.d.ts
/usr/src/app/node_modules/@types/node/index.d.ts
/usr/src/app/node_modules/@types/nodemailer/lib/dkim/index.d.ts
/usr/src/app/node_modules/@types/nodemailer/lib/mailer/mail-message.d.ts
/usr/src/app/node_modules/@types/nodemailer/lib/xoauth2.d.ts
/usr/src/app/node_modules/@types/nodemailer/lib/mailer/index.d.ts
/usr/src/app/node_modules/@types/nodemailer/lib/mime-node/index.d.ts
/usr/src/app/node_modules/@types/nodemailer/lib/smtp-connection/index.d.ts
/usr/src/app/node_modules/@types/nodemailer/lib/shared.d.ts
/usr/src/app/node_modules/@types/nodemailer/lib/json-transport.d.ts
/usr/src/app/node_modules/@types/nodemailer/lib/sendmail-transport/index.d.ts
/usr/src/app/node_modules/@types/nodemailer/lib/ses-transport.d.ts
/usr/src/app/node_modules/@types/nodemailer/lib/smtp-pool/index.d.ts
/usr/src/app/node_modules/@types/nodemailer/lib/smtp-transport.d.ts
/usr/src/app/node_modules/@types/nodemailer/lib/stream-transport.d.ts
/usr/src/app/node_modules/@types/nodemailer/index.d.ts
/usr/src/app/node_modules/@types/smtp-server/index.d.ts
/usr/src/app/node_modules/iconv-lite/lib/index.d.ts
/usr/src/app/node_modules/@types/mailparser/index.d.ts
/usr/src/app/node_modules/@types/fs-extra/index.d.ts
/usr/src/app/node_modules/logform/index.d.ts
/usr/src/app/node_modules/winston-transport/index.d.ts
/usr/src/app/node_modules/winston/lib/winston/config/index.d.ts
/usr/src/app/node_modules/winston/lib/winston/transports/index.d.ts
/usr/src/app/node_modules/winston/index.d.ts
/usr/src/app/src/index.ts
/usr/src/app/node_modules/@types/connect/index.d.ts
/usr/src/app/node_modules/@types/body-parser/index.d.ts
/usr/src/app/node_modules/@types/range-parser/index.d.ts
/usr/src/app/node_modules/@types/qs/index.d.ts
/usr/src/app/node_modules/@types/express-serve-static-core/index.d.ts
/usr/src/app/node_modules/@types/mime/index.d.ts
/usr/src/app/node_modules/@types/serve-static/index.d.ts
/usr/src/app/node_modules/@types/express/index.d.ts


Found 3 errors.


Files:                        126
Lines of Library:           27247
Lines of Definitions:       41052
Lines of TypeScript:           71

Lines of JavaScript:            0
Lines of JSON:                  0
Lines of Other:                 0
Nodes of Library:          117108
Nodes of Definitions:      105932
Nodes of TypeScript:          316
Nodes of JavaScript:            0
Nodes of JSON:                  0
Nodes of Other:                 0
Identifiers:                78367
Symbols:                    52049
Types:                        697
Instantiations:               664
Memory used:               95454K
Assignability cache size:     143
Identity cache size:            2
Subtype cache size:            38
Strict subtype cache size:      2
I/O Read time:              0.10s
Parse time:                 3.14s
ResolveModule time:         0.49s
ResolveTypeReference time:  0.09s
Program time:               4.15s
Bind time:                  1.57s
Check time:                 0.55s
transformTime time:         0.05s
commentTime time:           0.01s
I/O Write time:             0.01s
printTime time:             0.18s
Emit time:                  0.18s
Total time:                 6.46s

 ---> Removed intermediate container d9a17c04cb39

Obviously, the build fails, but no clue why.

My next step would be to try to build the docker image out of the context of HA.
If that fails as well without more info, then to try to build the project out of the docker context.

ah! So is it normal to get that level of information from HA?

I’ll do as you suggest and try building in Docker alone