10.0.0-alpha.2 - Hooks - Uncaught TypeError: Cannot read property 'render' of undefined
See original GitHub issueUsing hooks like this.
import {useState} from 'preact/hooks';
getting this error
hooks.mjs:1
Uncaught TypeError: Cannot read property 'render' of undefined
at Module../node_modules/preact/hooks/dist/hooks.mjs (hooks.mjs:1)
at __webpack_require__ (bootstrap:63)
at Module../src/index.js (index.js:2)
at __webpack_require__ (bootstrap:63)
at Object.2 (rx-preact-app.bundle.js:20462)
at __webpack_require__ (bootstrap:63)
at bootstrap:195
at bootstrap:195
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
10.0.0-alpha.2 - Hooks - Uncaught TypeError: Cannot ... - GitHub
hooks.mjs:1 Uncaught TypeError: Cannot read property 'render' of undefined at Module../node_modules/preact/hooks/dist/hooks.mjs ...
Read more >Cannot read property 'render' of undefined - Stack Overflow
Every time i tried to include a react-component, the error Cannot read property 'render' of undefined appeared in the console, ...
Read more >cannot read properties of undefined (reading '__h') - You.com
Describe the bug I'm getting TypeError: Cannot read properties of undefined (reading '__H') error on test environment when rendering a component which uses...
Read more >Changelog - Cypress Documentation
Cypress no longer throws the error "cannot read property split of undefined" in certain circumstances when application errors are thrown. Fixes #17378.
Read more >Bug List
493580, Orion, JS Tools, orion.client-inbox, CLOS, WONT ... CLOS, WONT, TypeError: Cannot read property 'replace' of undefined (in explorer.js), 2017-01-10.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That’s the plan 🎉 Already prepared the release notes yesterday and the next alpha should go out in ~15 h.
@didymu5 yeah with Myles finally fixing the
module
mess in node it seems like themjs
situation will be settled not too far in the future. We somewhat track it in #1321 although the issue title admittedly doesn’t really make that obvious.EDIT: There you go #1425 🎉