Open skrashevich opened 1 year ago
Hi, same issue here! I'm running bun in the official docker image
could you also provide package.json?
@TiranexDev Here's mine if that can help
{
"name": "@project/web",
"version": "0.0.0",
"description": "",
"scripts": {
"start": "vite",
"dev": "vite",
"build": "vite build",
"serve": "vite preview",
"typecheck": "tsc --noEmit"
},
"license": "MIT",
"devDependencies": {
"solid-devtools": "~0.27.6",
"typescript": "~5.1.6",
"vite": "~4.3.9",
"vite-plugin-solid": "~2.7.0"
},
"dependencies": {
"@project/internal": "workspace:*",
"solid-js": "~1.7.8"
}
}
Funny thing is that on my machine (Darwin 22.6.0 arm64 arm) it works. Inside the container, it doesn't
How did you install bun in container? Also is it a Docker container? If so then it's not recommended to install bun using curl, https://bun.sh/install lists a tab for Docker
Funny thing is that on my machine (Darwin 22.6.0 arm64 arm) it works. Inside the container, it doesn't
Have you tried running vite dev
inside a same docker container but on arm64 architecture?
replacing monacoEditorPlugin.default({
with monacoEditorPlugin({
fixes this problem in latest canary
Upd:
% bun --bun vite dev
VITE v4.4.7 ready in 1438 ms
➜ Local: http://localhost:5173/
➜ Network: use --host to expose
➜ press h to show help
error: "vite" exited with code 11 (SIGSEGV)
Upd2: it start work after execute bun --bun vite optimize
This is caused by incorrect handling of ESM importing CommonJS. (the monaco plugin is a common js module)
i think this is an easy issue. for those looking to contribute, look in Module.ts or ImportMetaObject.ts and see how we handle __esModule
, or more specifically how we handle when that isnt used.
can you suggest any workaround?
Seems this issue is still happening. It every so often, when vite performs a hot reload, it crashes with exited with code 11 (SIGSEGV)
. This is happening with Bun v1.0.7. It fails every 10 - 20 hot reloads.
As a side effect, it messes up the terminal: user input is no longer visible.
This issue is stale and may be closed due to inactivity. If you're still running into this, please leave a comment.
Wait for #9267
why was this given the needs repro label? i literally have a repro and explainer given. the issue with this change is it's a breaking change.
What version of Bun is running?
0.7.1
What platform is your computer?
Darwin 22.5.0 x86_64 i386
What steps can reproduce the bug?
% bun --bun vite dev
What is the expected behavior?
No response
What do you see instead?
Additional information
vite.config.ts: