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
I attempted to update from vite 2.6.x to 2.7.0 beta, and my tests began to fail with:
TypeError: _interopRequireDefault3 is not a function
at node_modules/@testing-library/jest-dom/dist/utils.js (node_modules/.cache/vite/@testing-library_jest-dom.js:3794:19)
at __require2 (node_modules/.cache/vite/chunk-UC7LELEO.js:48:44)
at node_modules/@testing-library/jest-dom/dist/to-be-in-the-dom.js (node_modules/.cache/vite/@testing-library_jest-dom.js:3971:18)
at __require2 (node_modules/.cache/vite/chunk-UC7LELEO.js:48:44)
at node_modules/@testing-library/jest-dom/dist/matchers.js (node_modules/.cache/vite/@testing-library_jest-dom.js:15699:25)
at __require2 (node_modules/.cache/vite/chunk-UC7LELEO.js:48:44)
at node_modules/@testing-library/jest-dom/dist/extend-expect.js (node_modules/.cache/vite/@testing-library_jest-dom.js:15730:46)
at __require2 (node_modules/.cache/vite/chunk-UC7LELEO.js:48:44)
at node_modules/@testing-library/jest-dom/dist/index.js (node_modules/.cache/vite/@testing-library_jest-dom.js:15777:5)
at __require2 (node_modules/.cache/vite/chunk-UC7LELEO.js:48:44)
### Validations
- [X] Follow our [Code of Conduct](https://github.com/vitejs/vite/blob/main/CODE_OF_CONDUCT.md)
- [X] Read the [Contributing Guidelines](https://github.com/vitejs/vite/blob/main/CONTRIBUTING.md).
- [X] Read the [docs](https://vitejs.dev/guide).
- [X] Check that there isn't [already an issue](https://github.com/vitejs/vite/issues) that reports the same bug to avoid creating a duplicate.
- [X] 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/vue-next instead.
- [X] Check that this is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/vitejs/vite/discussions) or join our [Discord Chat Server](https://chat.vitejs.dev/).
- [X] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.
The text was updated successfully, but these errors were encountered:
@sodatea I tracked the regression to #5510. Looks like without this change, @testing-library/jest-dom/dist/utils.js interop is using commonjs helpers, and with it, it switches to broken esm helpers.
I see that this PR removed the use of requireOptionshere. Maybe the logic to compute the options isn't right?
sodatea
added a commit
to sodatea/vite
that referenced
this issue
Nov 28, 2021
Describe the bug
I attempted to update from vite 2.6.x to 2.7.0 beta, and my tests began to fail with:
I traced this down to starting in beta.2.
Reproduction
https://stackblitz.com/edit/vite-a7kdqq?file=package.json
Note, you'll get an error in the console. If you change vite to use 2.7.0-beta.1 and re-install / restart, the app will load up as normal.
System Info
Used Package Manager
npm
Logs
The text was updated successfully, but these errors were encountered: