Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrading to node22 causes Cannot read properties of undefined (reading 'toString') #54

Closed
gtokman opened this issue Mar 11, 2025 · 1 comment

Comments

@gtokman
Copy link

gtokman commented Mar 11, 2025

Not sure if node 22 is supported, but after upgrading we're seeing the following issue:

7s
Run npx sst deploy
Attention: SST now collects completely anonymous telemetry regarding usage. This is used to guide SST's roadmap.
You can learn more, including how to opt-out of this anonymous program, by heading over to:
https://docs.sst.dev/anonymous-telemetry

SST v2.43.4

➜  App:     backend
   Stage:   v3-0-[1](Redacted>
   Region:  us-east-1
   Account: <Redacted>


Error: Cannot read properties of undefined (reading 'toString')

Trace: TypeError: Cannot read properties of undefined (reading 'toString')

Need help with this error? Post it in #help on the SST Discord https://sst.dev/discord
    at file:///home/runner/work/candle/candle/node_modules/sst/constructs/Function.js:310:52
    at process.<anonymous> (file:///home/runner/work/candle/candle/node_modules/sst/cli/sst.js:58:[21](https://github.com/candlefinance/candle/actions/runs/13776335823/job/38526356454#step:5:22))
    at process.emit (node:events:530:35)
    at process.emit (node:domain:489:12)
    at process._fatalException (node:internal/process/execution:154:[25](https://github.com/candlefinance/candle/actions/runs/13776335823/job/38526356454#step:5:26))
    at throwUnhandledRejectionsMode (node:internal/process/promises:394:5)
    at processPromiseRejections (node:internal/process/promises:475:17)
    at process.processTicksAndRejections (node:internal/process/task_queues:106:[32](https://github.com/candlefinance/candle/actions/runs/13776335823/job/38526356454#step:5:33))
@gtokman
Copy link
Author

gtokman commented Mar 11, 2025

Upgrading to latest sst fixed it.

@gtokman gtokman closed this as completed Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant