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 read properties of undefined (reading '__m') #4326

Open
joshua7v opened this issue Mar 26, 2024 · 0 comments
Open

Cannot read properties of undefined (reading '__m') #4326

joshua7v opened this issue Mar 26, 2024 · 0 comments

Comments

@joshua7v
Copy link

Describe the bug

call useId will throw an error Cannot read properties of undefined (reading '__m') similar to #4277
the environment is with Astro, probably related, but the error throws from preact

To Reproduce

  1. open the stackblitz link from Astro's Preact example https://github.com/withastro/astro/tree/latest/examples/framework-preact
  2. navigate to a component such as src/components/message.tsx
  3. add import { useId } from 'preact/hooks'; and call useId() within component
  4. look at the console or page preview to see the error
Snipaste_2024-03-26_10-48-27

Expected behavior

useId is pretty useful, it should work

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

1 participant