TypeError: (0 , import_tiny_invariant.default) is not a function
Describe the bug
error when starting dev server
Reproduction
Expected behavior
should start the dev server
System Info
vite@latest
vite-plugin-checker@latest
Additional context
No response
Validations
- [X] Read the docs.
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
I installed tiny-invariant manually and it started to work, later uninstalled it and it kept working. Weird stuff
thanks @jrozbicki I did the same and it did work!
Digging a bit deeper, I had that issue too because tiny-invariant v1.1.0 was installed. This is the version listed in the package.json here https://github.com/fi3ework/vite-plugin-checker/blob/ed9c09390cc00644c46aa3f9ef214b2a0895b95c/package.json#L100C5-L100C32
Installing it locally will install the latest version which is v1.3.1. That version seems to solve the problem above.
This is still happening to me as of March, 2024. Any updates on this?