-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Closed
Labels
Description
Describe the bug
Reference: vitest-dev/vitest#326
An await import statement with a catch block runs well in NodeJS but fails in vitest.
Maybe add an option to allow this in importAnalysis.ts:205?
Reproduction
System Info
System:
OS: macOS 12.1
CPU: (10) arm64 Apple M1 Max
Memory: 8.58 GB / 64.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 16.13.0 - /var/folders/hm/3h2qtx2x2jddg130mktcrztm0000gn/T/fnm_multishells/79464_1640586000170/bin/node
Yarn: 1.22.15 - /var/folders/hm/3h2qtx2x2jddg130mktcrztm0000gn/T/fnm_multishells/79464_1640586000170/bin/yarn
npm: 8.3.0 - /var/folders/hm/3h2qtx2x2jddg130mktcrztm0000gn/T/fnm_multishells/79464_1640586000170/bin/npm
Browsers:
Chrome: 96.0.4664.110
Safari: 15.2
npmPackages:
vite: ^2.7.7 => 2.7.7
vitest: ^0.0.115 => 0.0.115Used Package Manager
npm
Logs
No response
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 https://github.com/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