vite-plugin-checker icon indicating copy to clipboard operation
vite-plugin-checker copied to clipboard

TypeError: (0 , import_tiny_invariant.default) is not a function

Open zWingz opened this issue 2 years ago • 3 comments

Describe the bug

error when starting dev server image

Reproduction

image

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.

zWingz avatar Aug 28 '23 02:08 zWingz

I installed tiny-invariant manually and it started to work, later uninstalled it and it kept working. Weird stuff

jrozbicki avatar Sep 28 '23 15:09 jrozbicki

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.

phliem avatar Oct 03 '23 14:10 phliem

This is still happening to me as of March, 2024. Any updates on this?

hdpinto avatar Mar 07 '24 19:03 hdpinto