apollographql / apollographql/apollo-tooling

codegen breaks with latest `core-js`

Open
#2,647 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
3k
Forks
460
PR merge metrics
No merged PRs in 30d

Description

As described by the title, here's the error when I was trying to run apollo client:codegen:
```bash
Error: Cannot find module 'core-js/features/array/flat'
```

Install core-js@3.24.0 fixes the issue, but I think the package should not have core-js@^3.0.1 as deps.

Contributor guide

Open the contributing guide

Research direction

Start by locating the package dependency declaration for core-js and reproduce the failure with the apollo client:codegen command. Check how the declared version range resolves against current core-js releases. Done means codegen runs without the missing core-js/features/array/flat error using the supported dependency range.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli, tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.