Is this a bug? Imported constant is not defined while destructuring object #1789
-
https://stackblitz.com/edit/vitest-dev-vitest-eg6hlk?file=test/helper2.js there are 3 tests. all of them tests a simple function that uses an imported constant to destruct an object and return the result.
the weirdest thing is that I'm printing the constant value without issues |
Beta Was this translation helpful? Give feedback.
Answered by
sheremet-va
Aug 4, 2022
Replies: 1 comment 1 reply
-
This is Vite transform error. If you open Module Graph page in Vitest UI, you can inspect what the file is transformed into. I suggest opening an issue in Vitest repo with your reproduction. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
inakiabt
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is Vite transform error. If you open Module Graph page in Vitest UI, you can inspect what the file is transformed into. I suggest opening an issue in Vitest repo with your reproduction.