Closed michaelpeterlee closed 3 years ago
Preact 8.x -> preact-compat
Preact 10.x -> preact/compat
, note the /
character.
Excerpt from our docs on how to set up webpack aliasing:
{
"resolve": {
"alias": {
"react": "preact/compat",
"react-dom/test-utils": "preact/test-utils",
"react-dom": "preact/compat",
},
}
}
Replacing preact-compat
with preact/compat
in your config fixes your issue.
We receive many webpack errors that emanate from AntD, many errors reference
useEffect
.