Closed MerlinMason closed 4 months ago
I've tried to create a PR to address this but don't seem to have permission to push a new branch :(
You need to fork the repo and push the branch to your fork before opening a PR. https://docs.github.com/en/get-started/exploring-projects-on-github/contributing-to-a-project
But the typescript dependency is a peer dependency with range ^5.0.0
, it will use whichever version of typescript is used in your own project.
If you run npm install -P typescript@latest
, you'll get the latest version in your Astro project, and it should work. Can you try that?
ohhh I see - sorry! Thanks, have tried that and it works :)
FYI, we don't hardcode any versions of TypeScript inside the tooling, we always use whatever the project has. So for missing properties like this, you can always just update your version of TypeScript.
Describe the Bug
Node v21.0.0 adds support for
Object.groupBy()
method - this in turn is supported by TypeScript v5.4.0 release.This runs fine in Astro however it fails
astro check
.From what I can tell, this is due to https://github.com/withastro/language-tools/blob/main/pnpm-lock.yaml#L34 using TypeScript v5.2.2
Steps to Reproduce
npm init astro
with Node >= 21NASA Rocket: Orion
astro check
Property 'groupBy' does not exist on type 'ObjectConstructor'.