-
-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Closed
Labels
Description
Describe the bug
Astro discovered a failure in our test runner on the latest Vite branch. This error does not exist on the current Vite npm release. We're unable to find a minimal reproduction, but it can be reproduced by cloning both Astro and Vite locally.
Note: we have seen this error before! This was previously resolved by fixing a race condition found here: #8533
Reproduction
(see steps)
System Info
System:
OS: macOS 12.2
CPU: (8) x64 Apple M1 Pro
Memory: 21.53 MB / 16.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 14.18.1 - ~/.volta/tools/image/node/14.18.1/bin/node
Yarn: 1.22.17 - ~/.volta/tools/image/yarn/1.22.17/bin/yarn
npm: 8.4.0 - ~/.volta/tools/image/npm/8.4.0/bin/npm
Browsers:
Chrome: 103.0.5060.114
Firefox: 102.0.1
Safari: 15.3Used Package Manager
pnpm
Logs
- Run
pnpm buildandpnpm link --globalfrom~/repos/vite/packages/vite - Run
pnpm link --global vitefrom~/repos/astro/packages/astro - Run
pnpm dev(or build) from~/repos/astro - Run a known failing test, like
pnpm test:match "<Code> without lang or theme" - Hit the following error:
Error log
TypeError: Cannot read property 'isSelfAccepting' of undefined
at Object.transform (file:///Users/benholmes/Repositories/vite/packages/vite/dist/node/chunks/dep-b5e99e9a.js:40409:43)
at async transform (file:///Users/benholmes/Repositories/vite/node_modules/.pnpm/rollup@2.75.6/node_modules/rollup/dist/es/shared/rollup.js:21952:16)
at async ModuleLoader.addModuleSource (file:///Users/benholmes/Repositories/vite/node_modules/.pnpm/rollup@2.75.6/node_modules/rollup/dist/es/shared/rollup.js:22178:30)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.
Reactions are currently unavailable