Closed vtcaregorodtcev closed 4 years ago
It looks like you are using preact@10 with preact-compat
.
Compat has been integrated into the preact main package.
Change your alias from preact-compat
to point to preact/compat
and uninstall preact-compat
just to be sure.
If you encounter other issues after that change please report them at the main preact repo.
@Kanaye summed it up perfectly :+1: You need to switch to preact/compat
for Preact 10 :+1:
Awesome
Have application written in react using only
react functions and hooks
somewhere (useState
,useEffect
only). Follow preact migration where I see,"I need to add only two lines"
aliases for react and react-dom in my webpack config.after those manipulations I get error:
error at
VNode.prototype.$$typeof = REACT_ELEMENT_TYPE;
trying to migrate this project
https://github.com/vtcaregorodtcev/fuckts-maps/tree/use-preact
can someone help me with that? where I should dig? is it trouble with
preact-compat
or withantd
orreact-draggable
which I use in it?