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

Bun install invalid hook call #377

Closed
crimson-med opened this issue Nov 2, 2023 · 5 comments
Closed

Bun install invalid hook call #377

crimson-med opened this issue Nov 2, 2023 · 5 comments
Labels
unclear Probably needs more context, or can't be reproduced

Comments

@crimson-med
Copy link

When I install the package with bun i think some of the install scripts or compilation might not be run.

I end up having an issue: Invalid hook call. Hooks can only be called inside the body of a function component.

However running an install with yarn makes no issues.

@molefrog
Copy link
Owner

molefrog commented Nov 3, 2023

Hi! Does that error occur during the installation of the package or during the runtime?

@crimson-med
Copy link
Author

Hey @molefrog thanks for replying!

This happens at runtime in dev mode and after built and served with serve or apache.

Created a basic component

For flows:

  • yarn install
  • yarn dev

no issues

  • bun install
  • bun dev

The issue of the hook

  • yarn install
  • bun dev

no issues

@molefrog
Copy link
Owner

Thanks, I haven't been able to reproduce this yet... Also, we don't have install or compilation script, so that can't be the reason.

@crimson-med
Copy link
Author

I'll try to make a repo with the issue sometime later in the week

@molefrog molefrog added the unclear Probably needs more context, or can't be reproduced label May 4, 2024
@molefrog
Copy link
Owner

molefrog commented Sep 2, 2024

Closing this as stale, feel free to reopen.

@molefrog molefrog closed this as completed Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unclear Probably needs more context, or can't be reproduced
Projects
None yet
Development

No branches or pull requests

2 participants