ion
ion copied to clipboard
Panic when running `sst dev`
Hi, i am having issues with SST ion, we are trying to make use of it in an Nx workspace, and encountered an issue where running anything with sst dev [command] would spit out an error that looks like this: (this is the result of deploy, but same error when running sst dev too )
> pnpm exec sst deploy --profile sandbox --stage=development
Usage: sst deploy
Flags:
--stage The stage to deploy to
--verbose Enable verbose logging
--help Print help
--target Comma seperated list of target URNs
Examples:
sst deploy --stage=production
Learn more at https://ion.sst.dev
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x30 pc=0x101f42670]
goroutine 1 [running]:
github.com/sst/ion/cmd/sst/cli.(*Cli).PrintHelp(...)
/home/runner/work/ion/ion/cmd/sst/cli/cli.go:109
main.run()
/home/runner/work/ion/ion/cmd/sst/main.go:80 +0x260
main.main()
/home/runner/work/ion/ion/cmd/sst/main.go:41 +0x12c
thinking that Nx may somehow be the culprit i created an empty nextjs app, using pnpm create next-app with all defaults and then ran sst init this all claims to be successful, however when running pnpm dev i recieve a similar error to the above:
❯ pnpm dev --profile sandbox
> [email protected] dev /Users/breningham/Projects/my-app
> sst dev next dev "--profile" "sandbox"
Usage: sst dev [command]
Flags:
--stage The stage to deploy to
--verbose Enable verbose logging
--help Print help
--silent Do not output function invocation logs
Examples:
sst dev
sst dev next dev
sst dev "next dev --turbo"
Learn more at https://ion.sst.dev
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x30 pc=0x103816670]
goroutine 1 [running]:
github.com/sst/ion/cmd/sst/cli.(*Cli).PrintHelp(...)
/home/runner/work/ion/ion/cmd/sst/cli/cli.go:109
main.run()
/home/runner/work/ion/ion/cmd/sst/main.go:80 +0x260
main.main()
/home/runner/work/ion/ion/cmd/sst/main.go:41 +0x12c