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

Cannot find module 'vitest-fail-on-console' #17

Closed
kevinpainchaud opened this issue Feb 29, 2024 · 6 comments
Closed

Cannot find module 'vitest-fail-on-console' #17

kevinpainchaud opened this issue Feb 29, 2024 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@kevinpainchaud
Copy link

Bug description

Description

Since updating from v0.5.1 to v0.6.0, I get a typescript error on import.
It looks like the type declaration file is missing.

Expected outcome

No error on import

Actual outcome

Following error: Cannot find module 'vitest-fail-on-console' or its corresponding type declarations.ts(2307)

Screenshot

Screenshot 2024-02-29 at 11 29 10
@kevinpainchaud kevinpainchaud added the bug Something isn't working label Feb 29, 2024
@thomasbrodusch thomasbrodusch self-assigned this Feb 29, 2024
thomasbrodusch added a commit that referenced this issue Feb 29, 2024
* fix TypeScript type declaration (TS7016-TS2307)
@thomasbrodusch
Copy link
Owner

Thanks @kevinpainchaud for raising this issue!
I've reproduced the bug and just pushed a fix for it in this commit

New v0.6.1 is available on NPM - can you have a try and tell me if you still have any error ?

@kevinpainchaud
Copy link
Author

Unfortunately, I still experience the error after upgrading the dependency.

@thomasbrodusch
Copy link
Owner

Ok, I'll investigate it - thank you for your quick reply!

thomasbrodusch added a commit that referenced this issue Feb 29, 2024
* fix TypeScript type declaration (TS7016-TS2307)
* export types
* remove vitest import in index.ts
@thomasbrodusch
Copy link
Owner

@kevinpainchaud New v0.6.2 is available on NPM and should fix it!

Related changes:
9a60253

@kevinpainchaud
Copy link
Author

It's resolved! Thank you very much for promptly fix it 🙏

@thomasbrodusch
Copy link
Owner

Glad to hear that @kevinpainchaud
Thanks a lot for raising that one and for using vitest-fail-on-console 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants