oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
74.45k stars 2.78k forks source link

Better error when `extends` is not found (FileNotFound) #2804

Open patlux opened 1 year ago

patlux commented 1 year ago

What version of Bun is running?

0.6.0

What platform is your computer?

Darwin 22.4.0 arm64 arm

What steps can reproduce the bug?

CleanShot 2023-05-05 at 15 03 49@2x

What is the expected behavior?

No response

What do you see instead?

No response

Additional information

No response

gierschv commented 1 year ago

I can reproduce this issue, thanks for the screenshot, that was useful!

My current tsconfig for the project:

{
  "extends": "@tsconfig/node18/tsconfig.json",

  "exclude": ["node_modules"],
  "include": ["*.js", "*.ts", "packages/**/*.js", "packages/**/*.ts"],
  // Only check JS in place for now
  "compilerOptions": {
    "types": ["jest", "node"],
    "outDir": "dist",

    "allowJs": true,
    "checkJs": true,

    "strict": true,
    "strictNullChecks": true,
    "moduleResolution": "node",
    "esModuleInterop": true,
    "skipLibCheck": true,
    "forceConsistentCasingInFileNames": true
  },
  "ts-node": {
    "transpileOnly": true,
    "files": true,
    "compilerOptions": {}
  }
}

And I have @tsconfig/node18 in the dependencies:

"@tsconfig/node18": "1.0.3"

busybox11 commented 1 year ago

Same issue. Freshly-created Astro project with bunx, strict TypeScript, and react + tailwind via astro add.

Can confirm it works if I just make a big combined file of every single "extends" file content.