preact-compat
preact-compat copied to clipboard
Module not found: Error: Can't resolve 'react-dom/lib/CSSPropertyOperations'
It's from react-mdl-extra
I guess this is not implemented yet.
Looks like it, yup. If anyone is familiar with the code I'm happy to merge a port.
I might take a look this weekend / next week, but no promises :)
Hey got the same error -
Failed to compile
./node_modules/animated/lib/targets/react-dom.js
Module not found: Can't resolve 'react-dom/lib/CSSPropertyOperations' in '~/code-preact/node_modules/animated/lib/targets'
But I have 'react-dom/lib/CSSPropertyOperations'
Any workaround @developit ??
I added react-dom/lib/CSSPropertyOperations in preact-compat/lib/CSSPropertyOperations but then it couldn't find preact-compat/lib/CSSOperations & then it couldn't find a variety of modules so I stopped 😂
Same happened with inferno-compat
PS - I am using react-springy-parallax
Hmm, that's a new one. Super disappointing how many of these libraries reach into React's internals for no reason.
Yep but the library is super cool 😂
I think you should mention "Libraries using React's internals cannot be replaced using preact-compat" in documentation even though its super basic, but might help for some beginners