preact-compat icon indicating copy to clipboard operation
preact-compat copied to clipboard

Module not found: Error: Can't resolve 'react-dom/lib/CSSPropertyOperations'

Open saboya opened this issue 8 years ago • 7 comments

It's from react-mdl-extra

I guess this is not implemented yet.

saboya avatar Feb 23 '17 07:02 saboya

Looks like it, yup. If anyone is familiar with the code I'm happy to merge a port.

developit avatar Feb 23 '17 16:02 developit

I might take a look this weekend / next week, but no promises :)

saboya avatar Feb 23 '17 17:02 saboya

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 ??

deadcoder0904 avatar Sep 21 '17 14:09 deadcoder0904

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

deadcoder0904 avatar Sep 21 '17 14:09 deadcoder0904

Hmm, that's a new one. Super disappointing how many of these libraries reach into React's internals for no reason.

developit avatar Sep 21 '17 14:09 developit

Yep but the library is super cool 😂

deadcoder0904 avatar Sep 21 '17 14:09 deadcoder0904

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

deadcoder0904 avatar Sep 21 '17 14:09 deadcoder0904