Vercel dev CLI using old typescript version #8558
Unanswered
nipunn1313
asked this question in
Help
Replies: 2 comments 12 replies
-
Have you tried removing |
Beta Was this translation helpful? Give feedback.
10 replies
-
I think my issue is related to this as well I get |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
In my project, I'm running vercel dev from the CLI to run a serverless function. When my serverless function is invoked, it appears to run typescript on my serverless function using an old version of typescript.
Example error:
174 (...args: Parameters): Promise<Awaited<ReturnType>>;
Awaited was introduced in typescript 4.5.
My local package.json references typescript 4.7 and running
npx tsc
locally passes.EDIT:
While debugging I found this:
So I'm suspicious that
@vercel/node
is shipping with an old version of typescript and then choosing that version over the one I have locally installed from my package.json.Beta Was this translation helpful? Give feedback.
All reactions