Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Preact Error on next 12 - Theo's Typesafe Cult
TTC
Theo's Typesafe Cult
•
3y ago
•
1 reply
AvPirate
Preact Error on next 12
On next 12
, I tried to switch to Preact
, using the following guide
:
https://reacthustle.com/blog/how-to-speed-up-your-nextjs-app-with-preact
But I get this error
:
Cannot read properties of undefined
(reading
'
_
_H
'
)
The error seems to refer to a mix of CJS with ESM bundles
, but I tried to fix it as specified in this guide
, and it didn
't work
.
How my package
.json looks
:
"next
-plugin
-preact
"
:
"
^3
.0
.7
"
,
"preact
"
:
"
^10
.15
.1
"
,
"preact
-render
-to
-string
"
:
"
^6
.1
.0
"
,
"react
"
:
"
n
p
m
:
@preact
/compat
@
^17
.1
.2
"
,
"react
-dom
"
:
"
n
p
m
:
@preact
/compat
@
^17
.1
.2
"
,
ReactHustle
Full Tutorial: How to Speed Up your NextJS App with Preact | ReactH...
If you have a nextjs blog or website
, you would want to speed it up by reducing your bundle size
. One way to drastically reduce bundle size is to replace react with preact
.
Theo's Typesafe Cult
Join
26,564
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
400 error on Next Image
TTC
Theo's Typesafe Cult / questions
2mo ago
Next error
TTC
Theo's Typesafe Cult / questions
3y ago
Preact signals in Nextjs14 + AppRouter
TTC
Theo's Typesafe Cult / questions
3y ago
error: NEXT_REDIRECT
TTC
Theo's Typesafe Cult / questions
2y ago