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

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

Open
2 tasks done
zWingz opened this issue Aug 28, 2023 · 3 comments
Open
2 tasks done

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

zWingz opened this issue Aug 28, 2023 · 3 comments

Comments

@zWingz
Copy link

zWingz commented Aug 28, 2023

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

  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
@jrozbicki
Copy link

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

@phliem
Copy link

phliem commented Oct 3, 2023

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.

@hdpinto
Copy link

hdpinto commented Mar 7, 2024

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

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

4 participants