Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

possible fix #1

Closed
ghost opened this issue Jan 6, 2023 · 4 comments
Closed

possible fix #1

ghost opened this issue Jan 6, 2023 · 4 comments

Comments

@ghost
Copy link

ghost commented Jan 6, 2023

This is what I tried at least, I think it compiles just fine, you may need to inspect, the changes are:

  • Do not use the line vitest/globals in tsconfig
  • Use a config for vitest like the provided
  • Install jest types npm i --save-dev @types/jest (this is done with npm i now.

Here is the example: https://github.com/santimirandarp/vite-error-possible-fix/

@Maxim-Mazurok
Copy link

I think I was doing the same and it wasn't working... It seems like you're using deprecated tsc npm module, maybe that's why it works?
Also I see you're using sample.test.ts and I was using sample.spec.ts pretty sure it doesn't matter, but who knows...

@ghost
Copy link
Author

ghost commented Jan 8, 2023

I'm using

tsc --version
Version 4.9.4

@Maxim-Mazurok
Copy link

That looks fine, still you don't need to install tsc as a seperate npm module, the tsc command comes with typescript npm module. Not that it matters tho, cheers!

@ghost
Copy link
Author

ghost commented Jan 9, 2023

Yes. I didn't realize it was in the package.json I probably copy&pasted from somewhere.

@ghost ghost closed this as not planned Won't fix, can't repro, duplicate, stale Jan 14, 2023
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant