Skip to content

TypeError: Cannot read properties of undefined (reading 'indexOf') #529

@reteps

Description

@reteps

Bug report

yarn postgrestools check .
/home/runner/work/PrairieLearn/PrairieLearn/node_modules/@postgrestools/postgrestools/bin/postgrestools:36
  if (stderr.indexOf("musl") > -1) {
             ^

TypeError: Cannot read properties of undefined (reading 'indexOf')
    at isMusl (/home/runner/work/PrairieLearn/PrairieLearn/node_modules/@postgrestools/postgrestools/bin/postgrestools:36:14)
    at getPlatform (/home/runner/work/PrairieLearn/PrairieLearn/node_modules/@postgrestools/postgrestools/bin/postgrestools:44:12)
    at Object.<anonymous> (/home/runner/work/PrairieLearn/PrairieLearn/node_modules/@postgrestools/postgrestools/bin/postgrestools:50:57)
    at Module._compile (node:internal/modules/cjs/loader:1706:14)
    at Object..js (node:internal/modules/cjs/loader:1839:10)
    at Module.load (node:internal/modules/cjs/loader:1441:32)
    at Function._load (node:internal/modules/cjs/loader:1263:12)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:237:24)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:171:5)

Describe the bug

It crashes

System information

Latest version

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions