Categories
Mastering Development

Vue3 Vite and tests with jest has no template compiler

i use a codebase made with Vue3 Vite, but i cannot find a way to run a simple Jest test importing a component. This works fine in an app create with Vue-cli, but i cannot find a way to make Jest work in a Vue-Vite app with Vue3. Here is the error I encounter FAIL […]

Categories
Mastering Development

Cannot find module ‘class-transformer’ or its corresponding type declarations

I am trying to use the class-transformer package with NestJS v7. The class-transformer package was installed with npm i class-transformer –save. I’ve followed instructions as per readme.md This package does have a typescript definition, I can see it on my filesystem (in the correct directory inside node_modules), VS Code navigates to the definition just fine, […]