-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
@types/bun
still conflicts with @types/node
#8761
Comments
@types/node
still conflicts with @types/bun
@types/bun
still conflicts with @types/node
Confirmed I'm seeing the same exact errors in my project too. Thank you for reporting. |
more info , fetch work bad, no lib.dom found. but navigator seems ok here is my config, bun version: 1.0.29 {
"compilerOptions": {
"target": "ES2020",
"moduleDetection": "force",
"lib": ["DOM", "DOM.Iterable", "ESNext"],
"module": "ESNext",
"jsx": "react-jsx",
"strict": true,
"skipLibCheck": true,
"isolatedModules": true,
"resolveJsonModule": true,
"moduleResolution": "bundler",
"useDefineForClassFields": true,
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"noEmit": true,
"noFallthroughCasesInSwitch": true,
},
"include": ["src", "config", "plugins"]
}
package.json {
"devDependencies": {
"@types/bun": "^1.0.8",
"typescript": "^5.3.0"
}
} |
Experiencing same problem when running
Modules installed
|
Same issues as well |
I got the error as well on Mac OS with @types/bun latest |
Any workaround in a meantime? Would love to use |
Also different type for URL. i cant use URL with fetch...
|
This is a workaround for oven-sh/bun#8761 to allow our types to build.
I'm getting the same issues with a project that doesnt even use bun but is part of a pnpm / turborepo project, which includes a project that uses bun. Does anyone have a solution? |
Same issues in a very basic TypeScript project with bun ... |
Same issue here, unable to use bun:test because of this... :( |
Also having trouble with it |
Still happening :-( |
Scratch that... As long as it's installed in |
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
just use skipLibCheck |
* feat: add elysia adapter * chore: use typings from dist and remove Promise * chore: improve package and README * chore: improve elysia example * chore: use skipLibCheck (oven-sh/bun#8761) * change: author at package * chore: bumps
* feat: add elysia adapter * chore: use typings from dist and remove Promise * chore: improve package and README * chore: improve elysia example * chore: use skipLibCheck (oven-sh/bun#8761) * change: author at package * chore: bumps * chore: support top-level await in example * chore: add docker-compose.redis for better testing * chore: a lot of fixes * chore: remove @elysiajs/static usage (switched to Bun.glob) * chore: remove `@elysiajs/static` import and switch to `elysia` at example (in user project shouldnt break types) * chore: add missing tsconfig * chore: export * chore: bumps
This issue has gotten more severe, as it seems TypeScript now ships with
As using |
Actually, it's now even worse than I thought. Even
It is literally impossible to use the TypeScript compiler and @Jarred-Sumner, @nektro: Apologies for the direct ping, but I'd really appreciate a signal about what |
@lgarron are you able to put together a small reproduction repo? Copying those commands exactly above but not seeing any errors from TypeScript. |
Woah, it looks like that one is fixed with the latest versions! But the original repro still holds:
Here's a snapshot in a repo: https://github.com/lgarron/bun-8761-repro-snapshot |
@lgarron Thanks very much for that, looking into this now |
What version of Bun is running?
1.0.25+a8ff7be64
What platform is your computer?
Darwin 23.2.0 arm64 arm
What steps can reproduce the bug?
What is the expected behavior?
TypeScript runs successfully.
What do you see instead?
Additional information
Also see:
bun-types
causes typescript to ignorelib: ['dom']
#463This prevents me from using
@types/bun
in projects where@types/node
is also needed. When I try to use@types/bun
incubing.js
, I get additional conflicts:The text was updated successfully, but these errors were encountered: