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

Breaks when the tsconfig.json file has extends #564

Open
7 tasks done
kevbook opened this issue Jul 24, 2024 · 3 comments
Open
7 tasks done

Breaks when the tsconfig.json file has extends #564

kevbook opened this issue Jul 24, 2024 · 3 comments
Labels
help wanted Extra attention is needed pr welcome upstream

Comments

@kevbook
Copy link

kevbook commented Jul 24, 2024

Describe the bug

I keep getting the following error when I use a tsconfig.json with extends

  0:0  error  Parsing error: Cannot read properties of undefined (reading 'target')
export default antfu({
  typescript: { 
    tsconfigPath: resolve(process.cwd(), 'tsconfig.json')
   }
});

// Project tsconfig.json

{
  "extends": "./base-tsconfig.json"
}

base-tsconfig.json file contains the company-wide standard config. This is typically another npm package, but for now just a local file.

Let me know if I need to provide any more details. I just started getting this error since the last update.

Reproduction

$ eslint . 

System Info

System:
  OS: macOS 14.5
  CPU: (8) arm64 Apple M3
  Memory: 70.64 MB / 16.00 GB
  Shell: 3.2.57 - /bin/bash

Binaries:
  Node: 20.15.1 - /usr/local/bin/node
  npm: 10.7.0 - /usr/local/bin/npm
  pnpm: 9.6.0 - ~/Library/pnpm/pnpm

Used Package Manager

pnpm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Contributions

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests (actually just go ahead and do it, thanks!)
@kevbook
Copy link
Author

kevbook commented Jul 24, 2024

I just confirmed, the last working version is v2.21.3

@pauliesnug
Copy link

This is probably an upstream issue with typescript-eslint@8

@antfu
Copy link
Owner

antfu commented Jul 25, 2024

Yeah this might be an upstream issue. Please report to typescript-eslint with a minimal reproduction for them.

@antfu antfu added the upstream label Jul 25, 2024
@antfu antfu added help wanted Extra attention is needed pr welcome labels Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed pr welcome upstream
Projects
None yet
Development

No branches or pull requests

3 participants