In the latest beta 25 release we upgrade Vite to version 7, however, downstream in Rollup (which Vite uses) a bug was introduced which will break apps when you try running npm run build
- the bug is detailed here and appears it will be fixed momentarily: bug from 4.45.0: Cannot add property 0, object is not extensible · Issue #6012 · rollup/rollup · GitHub - but at the time of writing this (and hopefully for not much longer) the issue will appear in new Vite based apps generated using npx makes aurelia
and if you upgrade any existing Vite apps to the latest beta 25 release.
The fix in the aforementioned link advises pinning the version of Rollup to a version that isn’t broken in your package.json
file:
"resolutions": {
"rollup": "4.44.0"
}
I have confirmed this fixes the issue.