freezing-electrician-6256
11/22/2023, 10:05 PMCannot convert object to primitive value
and nothing in the stack trace indicates towards where the error is (syntax or otherwise). has anyone else experienced this, and is there any way to see what the actual typescript error is? i am using eglot
in emacs for typescript LSP integration, and it doesnt show any errors right now, but at least in the past when I got this error I wasn't running the language server and was unknowingly introducing errors.
full stack trace is like this, but it's not very helpful:
error: Running program '/home/user/infrastructure/project-pulumi' failed with an unhandled exception:
TypeError: Cannot convert object to primitive value
at process.uncaughtHandler (/home/user/infrastructure/project-pulumi/node_modules/@pulumi/cmd/run/run.ts:266:66)
at process.emit (node:events:526:35)
at process.emit (/home/user/infrastructure/project-pulumi/node_modules/source-map-support/source-map-support.js:516:21)
at emit (node:internal/process/promises:150:20)
at processPromiseRejections (node:internal/process/promises:284:27)
at processTicksAndRejections (node:internal/process/task_queues:96:32)
freezing-electrician-6256
11/22/2023, 10:13 PMfreezing-electrician-6256
11/23/2023, 12:10 AMtsc
lol. somehow i'm not used to actually running it, when i've used ts in the past it's usually baked into e.g. a bundler or my editorfreezing-electrician-6256
11/23/2023, 12:11 AMtsc
reported and I am still getting the same error message ðŸ˜freezing-electrician-6256
11/23/2023, 12:12 AMlittle-cartoon-10569
11/23/2023, 1:16 AMfreezing-electrician-6256
11/23/2023, 1:16 AMfreezing-electrician-6256
11/23/2023, 1:17 AMfreezing-electrician-6256
11/23/2023, 1:17 AMtsc
messed with my project 😞freezing-electrician-6256
11/23/2023, 1:18 AMlittle-cartoon-10569
11/23/2023, 1:18 AMfreezing-electrician-6256
11/23/2023, 1:19 AMfreezing-electrician-6256
11/23/2023, 1:19 AMlittle-cartoon-10569
11/23/2023, 1:20 AMfreezing-electrician-6256
11/23/2023, 1:21 AMruntime:
name: nodejs
options:
# See <https://github.com/TypeStrong/ts-node/issues/1007>
nodeargs: "--loader ts-node/esm --no-warnings --experimental-specifier-resolution=node"
freezing-electrician-6256
11/23/2023, 1:21 AMlittle-cartoon-10569
11/23/2023, 1:23 AMfreezing-electrician-6256
11/23/2023, 1:23 AMlittle-cartoon-10569
11/23/2023, 1:24 AM