You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Vite dev server fails to start in WebContainer with RangeError: Invalid atomic access index #2104
When running a fresh Vite React project inside StackBlitz WebContainer, the dev server fails to start. During startup, Rollup downloads @rollup/binding-wasm32-wasi and then crashes with:
RangeError: Invalid atomic access index
worker (tid = 43) sent an error: Invalid atomic access index
As a result, the application never starts and StackBlitz displays "Failed to run start command".
any word on a fix for this? all my projects are failing now because of this exact error.
node:30) ExperimentalWarning: WASI is an experimental feature and might change at any time
(Use node --trace-warnings ... to show where the warning was created)
(node:30) ExperimentalWarning: WASI is an experimental feature and might change at any time
(Use node --trace-warnings ... to show where the warning was created)
worker (tid = 43) sent an error! Invalid atomic access index
RangeError: Invalid atomic access index
at Object.storeSizeTypeValue (/tmp/rolldown-1.0.0-rc.11/node_modules/.pnpm/@emnapi+core@1.11.0/node_modules/@emnapi/core/dist/emnapi-core.cjs.js:1218:29)
at Object.pushQueue (/tmp/rolldown-1.0.0-rc.11/node_modules/.pnpm/@emnapi+core@1.11.0/node_modules/@emnapi/core/dist/emnapi-core.cjs.js:990:28)
at eval (/tmp/rolldown-1.0.0-rc.11/node_modules/.pnpm/@emnapi+core@1.11.0/node_modules/@emnapi/core/dist/emnapi-core.cjs.js:1040:36)
at Object.execute (/tmp/rolldown-1.0.0-rc.11/node_modules/.pnpm/@emnapi+core@1.11.0/node_modules/@emnapi/core/dist/emnapi-core.cjs.js:1094:36)
at Object.push (/tmp/rolldown-1.0.0-rc.11/node_modules/.pnpm/@emnapi+core@1.11.0/node_modules/@emnapi/core/dist/emnapi-core.cjs.js:1029:33)
at napi_call_threadsafe_function (/tmp/rolldown-1.0.0-rc.11/node_modules/.pnpm/@emnapi+core@1.11.0/node_modules/@emnapi/core/dist/emnapi-core.cjs.js:1612:31)
No, it’s not fixed for me either. I'm seeing the same error across multiple projects, not just this Vite React example.
I haven't made any changes to my setup, and projects that were previously working are now failing with:
RangeError: Invalid atomic access index
worker (tid = 43) sent an error: Invalid atomic access index
Since other users are also reporting the same behavior, this appears to be a broader WebContainer/runtime issue rather than something specific to a single project configuration.
yeah it's affecting all my projects that use vite 8/react 6. not sure which is the issue, but my older projects that are on vite 5 seem to be fine still
No, it’s not fixed for me either. I'm seeing the same error across multiple projects, not just this Vite React example.
I haven't made any changes to my setup, and projects that were previously working are now failing with:
RangeError: Invalid atomic access index
worker (tid = 43) sent an error: Invalid atomic access index
Since other users are also reporting the same behavior, this appears to be a broader WebContainer/runtime issue rather than something specific to a single project configuration.
The exact same issue happens in my project too.
It seems to be the problem with Vite 8 on Chromium 149. It was working fine on 148.
We're still investigating. Everything works perfectly fine in Chrome 148, Firefox, and even Safari (although Safari might have different issues because support is still experimental). So it must be something that has changed in Chrome 149.
We are able to reproduce this outside WebContainer by using Rolldown directly in the browser. So this issue is likely somewhere upstream. As a temporary workaround you can downgrade to Vite 7 (if possible) because they don't use Rolldown.
We're doing our best to get this resolved as soon as we can. Sorry for the inconvenience.
This issue should now be fixed and Vite 8 should be working in WebContainer. If you still run into this issue, please create a new bug report with the project URL so we can investigate. Closing this as completed.
Activity
bolt-new-by-stackblitz commentedon Jun 3, 2026
jspanoeddson commentedon Jun 8, 2026
any word on a fix for this? all my projects are failing now because of this exact error.
node:30) ExperimentalWarning: WASI is an experimental feature and might change at any time
(Use
node --trace-warnings ...to show where the warning was created)(node:30) ExperimentalWarning: WASI is an experimental feature and might change at any time
(Use
node --trace-warnings ...to show where the warning was created)worker (tid = 43) sent an error! Invalid atomic access index
RangeError: Invalid atomic access index
at Object.storeSizeTypeValue (/tmp/rolldown-1.0.0-rc.11/node_modules/.pnpm/@emnapi+core@1.11.0/node_modules/@emnapi/core/dist/emnapi-core.cjs.js:1218:29)
at Object.pushQueue (/tmp/rolldown-1.0.0-rc.11/node_modules/.pnpm/@emnapi+core@1.11.0/node_modules/@emnapi/core/dist/emnapi-core.cjs.js:990:28)
at eval (/tmp/rolldown-1.0.0-rc.11/node_modules/.pnpm/@emnapi+core@1.11.0/node_modules/@emnapi/core/dist/emnapi-core.cjs.js:1040:36)
at Object.execute (/tmp/rolldown-1.0.0-rc.11/node_modules/.pnpm/@emnapi+core@1.11.0/node_modules/@emnapi/core/dist/emnapi-core.cjs.js:1094:36)
at Object.push (/tmp/rolldown-1.0.0-rc.11/node_modules/.pnpm/@emnapi+core@1.11.0/node_modules/@emnapi/core/dist/emnapi-core.cjs.js:1029:33)
at napi_call_threadsafe_function (/tmp/rolldown-1.0.0-rc.11/node_modules/.pnpm/@emnapi+core@1.11.0/node_modules/@emnapi/core/dist/emnapi-core.cjs.js:1612:31)
Node.js v22.22.0
yMeeraki commentedon Jun 8, 2026
No, it’s not fixed for me either. I'm seeing the same error across multiple projects, not just this Vite React example.
I haven't made any changes to my setup, and projects that were previously working are now failing with:
Since other users are also reporting the same behavior, this appears to be a broader WebContainer/runtime issue rather than something specific to a single project configuration.
jspanoeddson commentedon Jun 8, 2026
yeah it's affecting all my projects that use vite 8/react 6. not sure which is the issue, but my older projects that are on vite 5 seem to be fine still
channyeintun commentedon Jun 9, 2026
The exact same issue happens in my project too.
It seems to be the problem with Vite 8 on Chromium 149. It was working fine on 148.
Downgrade Vite from 8 to 7 due to `Invalid atomic access index` issue…
jspanoeddson commentedon Jun 9, 2026
yeah it seems to be just 8. I have an older project on 5.x and it works fine still.
Downgrade Vite from 8 to 7 due to `Invalid atomic access index` issue…
d3lm commentedon Jun 12, 2026
Hey all 👋 We are looking in this. I ll keep you posted.
SamVerschueren commentedon Jun 12, 2026
We're still investigating. Everything works perfectly fine in Chrome 148, Firefox, and even Safari (although Safari might have different issues because support is still experimental). So it must be something that has changed in Chrome 149.
SamVerschueren commentedon Jun 12, 2026
We are able to reproduce this outside WebContainer by using Rolldown directly in the browser. So this issue is likely somewhere upstream. As a temporary workaround you can downgrade to Vite 7 (if possible) because they don't use Rolldown.
We're doing our best to get this resolved as soon as we can. Sorry for the inconvenience.
feat(labs/vite-hmr): make the playground openable on StackBlitz/bolt
Downgrade vite - stackblitz/webcontainer-core#2104
SamVerschueren commentedon Jun 15, 2026
In the mean time, this issue got fixed upstream in emnapi and they now working on getting this fixed in Rolldown/Vite.
downgrade vite to make it work with stackblitz
SamVerschueren commentedon Jun 22, 2026
This issue should now be fixed and Vite 8 should be working in WebContainer. If you still run into this issue, please create a new bug report with the project URL so we can investigate. Closing this as completed.