version :
"preact": "10.20.2",
"wouter-preact": "3.1.1"
have error:
bundle.js:1887 Uncaught TypeError: Cannot read properties of undefined (reading 'context')
at P (hooks.module.js:115:13)
at useRouter (index.js:71:81)
at d.Router [as constructor] (index.js:132:19)
at d.O [as render] (preact.module.js:273:15)
at j (preact.module.js:206:38)
at w (preact.module.js:118:5)
at j (preact.module.js:208:245)
at w (preact.module.js:118:5)
at j (preact.module.js:208:245)
at w (preact.module.js:118:5)
version :
"preact": "10.20.2", "wouter-preact": "3.1.1"
have error:
my code: