-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
bun run check fails with "Type 'Promise<Plugin_2[]>' is not assignable to type 'PluginOption'." #10802
Comments
I can't reproduce the issue with these instructions. Please provide a proper minimal reproduction in the form of a downloadable repository. |
I am so sorry. My instructions were wrong. I have tested out bun for this example. As I thought it is a "drop-in" replacement for node, I assumed the instructions should be same. But I cannot reproduce it with node as well.
When creating the app I selected the following options:
|
Issues that arise only with Bun are not something we can afford to try help debug. Bun may have reached 1.0, but a lot of it is still very likely to be unstable or not working yet. If it's operating in a mode that says it's a drop-in replacement and it's behaving differently than Node, that sounds like an issue on Bun's end. |
+1 |
1 similar comment
+1 |
The issue is resolved. Does not occur in bun version 1.0.6 anymore. Also, see oven-sh/bun#5677. |
Hmm I still seem to be getting it even on the latest version of bun |
import { sveltekit } from "@sveltejs/kit/vite"
import { defineConfig } from "vitest/config"
import arraybuffer from "vite-plugin-arraybuffer"
export default defineConfig({
plugins: [
sveltekit(),
// used for importing fonts in satori /api/og/+server.ts
arraybuffer(),
],
test: {
include: ["src/**/*.{test,spec}.{js,ts}"],
}
}) This is specifically happening when I use the |
I'm getting the same error in a brand new sveltekit project using the Terminal Output
|
Getting the same issue with using the |
@Conduitry this appears to be occuring not just with bun, but also pnpm Specifically with the Could this be re-opened? @ryanzec which runtime are you using? bun/pnpm/node? |
@AlbertMarashi well I am using |
These issues appear when multiple versions of vite came into your node modules.deduplicate them |
one source for multiple versions of vite can be vitest, if you use vite6, you either have to use vitest@beta(^3.0.0-beta.1) or add an override so that vitest@2 uses vite6. |
Could you provide an example? I appeared to get this issue straight out of the box with the Should the |
re sv cli see sveltejs/cli#353 |
Describe the bug
Hi,
I have setup a new sveltekit project with typescript and prettier enabled.
When I run
bun run check
, I get the error below.What can I do to get rid of this error?
Reproduction
npm create svelte@latest my-app
cd my-app
npm install
npm run check
Logs
System Info
Severity
annoyance
Additional Information
No response
The text was updated successfully, but these errors were encountered: