-
-
Couldn't load subscription status.
- Fork 7.4k
Description
Describe the bug
The changes in this PR have created issues for users of @cloudflare/vite-plugin. Upgrading to vite@^7.1.3 is leading to frequent occurrences of Error: There is a new version of the pre-bundle for ... errors.
Reproduction
https://github.com/jamesopstad/optimize-deps-repro
Steps to reproduce
Run pnpm i followed by pnpm dev. Every browser refresh will trigger the error.
Note that I have patched TanStack Start so that dependencies are not discovered ahead of time. This makes the issue more obvious. If the Vite version is switch from 7.1.3 to 7.1.2 then an error occurs on the first load but not subsequent loads. This is the expected behaviour.
System Info
System:
OS: macOS 15.6.1
CPU: (12) arm64 Apple M3 Pro
Memory: 1.12 GB / 36.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 24.2.0 - ~/.nvm/versions/node/v24.2.0/bin/node
Yarn: 1.22.22 - ~/.nvm/versions/node/v24.2.0/bin/yarn
npm: 11.3.0 - ~/.nvm/versions/node/v24.2.0/bin/npm
pnpm: 10.15.1 - ~/.nvm/versions/node/v24.2.0/bin/pnpm
Browsers:
Chrome: 140.0.7339.208
Safari: 18.6Used Package Manager
pnpm
Logs
Error: There is a new version of the pre-bundle for ...
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.