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

im not able to upgrade to nodejs 18 for AWS stack #3763

Open
baraadeek opened this issue May 13, 2024 · 10 comments
Open

im not able to upgrade to nodejs 18 for AWS stack #3763

baraadeek opened this issue May 13, 2024 · 10 comments

Comments

@baraadeek
Copy link

im tried to upgrade the nodejs version from 16 to 18 but there was no choice to use node 18 even when I used the latest version of the package I still couldn't find nodejs 18

app.setDefaultFunctionProps({
runtime: 'nodejs16.x'
})

only I found these runtimes
export declare type Runtime = "nodejs" | "nodejs4.3" | "nodejs6.10" | "nodejs8.10" | "nodejs10.x" | "nodejs12.x" | "nodejs14.x" | "nodejs16.x" | "python2.7" | "python3.6" | "python3.7" | "python3.8" | "python3.9" | "dotnetcore1.0" | "dotnetcore2.0" | "dotnetcore2.1" | "dotnetcore3.1" | "go1.x";

so how I can upgrade the node version any options?

@Jaafar-abusair
Copy link

I have the same issue

@jaferi512
Copy link

I'm also trying to upgrade and having same issue.

@baraadeek
Copy link
Author

@nick

@jayair
Copy link
Contributor

jayair commented May 14, 2024

That's strange because it's right there: https://github.com/sst/sst/blob/master/packages/sst/src/constructs/Function.ts#L72

@baraadeek
Copy link
Author

@jayair what is the package version you get this link from, I tried multiple times with no luck only can see nodejs16_x and I tried to create new project getting the same issue

@jayair
Copy link
Contributor

jayair commented May 14, 2024

@baraadeek Hmm that one was from master, but if I take the tag for the latest release: https://github.com/sst/sst/blob/v2.41.5/packages/sst/src/constructs/Function.ts#L72

@baraadeek
Copy link
Author

@jayair ok what do you think i miss when I do this

mkdir my-sst-app cd my-sst-app npx create-serverless-stack@latest my-sst-app cd my-sst-app
but also I have node 14 only for newly created project

@baraadeek
Copy link
Author

@jayair is this package belongs to sst

@serverless-stack/resources

https://www.npmjs.com/package/@serverless-stack/resources

@jayair
Copy link
Contributor

jayair commented May 14, 2024

These are from SST v1 which is a couple of years old. We don't update them anymore.

npx create-sst@latest my-sst-app
npx sst dev

Is what you are looking for.

@baraadeek
Copy link
Author

@jayair thanks a lot for your response

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

4 participants