preact icon indicating copy to clipboard operation
preact copied to clipboard

Cannot read properties of undefined (reading '__m')

Open joshua7v opened this issue 11 months ago • 0 comments

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

joshua7v avatar Mar 26 '24 02:03 joshua7v