-
I maintain a small module for a much larger project, i can't run tests with it with vite due to this kind of error:
Following the link, it just says to tell the maintainer. Well, since I am the maintainer I have no idea what to do next. I checked if my Reverse engineering where the problem is caused leads nowhere as string searching the error brings no results. What exact config problem is vitest upset with, here ? What does it expect vs what I am giving it that makes it think my library need polyfill? I am not using anything from the global space other than My best guess is that my tsconfig does something illegal that is unexpected by vitest, but without information on what it does incorrectly that is impossible to tell... https://gitlab.zweieuro.at/wui/core/web-user-interface-node/-/tree/development is the library i wrote and am trying to make work. Sidenote: I am using deno, but that only changes the imports to have a prefix. TLDR: I've originally asked this question: vitest-dev/vitest#7617 but since apparently its a vite problem not a vitest problem i am reasking it here Apparently when I try to do it with a blank react-ts vite project it works as expected, which makes me wonder what the difference is between the two versions. Maybe the TSconfig file of the template does something that deno settings don't do normally. or here: but sadly to me this doesn't mean anything to me, no idea how this code is eventually parsed and/or executed |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Are you importing with It'd also help if your module was public, it seems to be private (or under a different name) as this 404's. |
Beta Was this translation helpful? Give feedback.
OKAY!
I got it working apparently by removing the deno-specific
npm:
in front of@testing-library
.I have no earthly clue WHY but at least it stops complaining now