Closed pinn3 closed 8 years ago
I'm curios too and also get that error when I try to add undo/redo too. @developit any hint please?
The Babel presets are correct: minimal specifies the normal es2015 preset as a peerDependency so it can be updated independently.
Will look into this asap. In React a single child is not wrapped in an array, which preact-compat attempts to emulate.
Ah - I forgot to close this out when I switched the project to preact-redux. That fixed the unnecessary dependencies. The minimal preset is required as I mentioned above, so it looks like this can be closed!
Does preact-redux fix this problem? Having the same issue
Provider component is complaining about its children, which are the Router component with its children
Thanks.
Yup, preact-redux
does the trick
Awesome, thanks guys!
Might have missed some but, if I'm not mistaking, the following packages are redundant. Not sure if you left them there for boiler purposes though
babel-preset-es2015@package.json:27 Since you only use es2015-minimal
preact-compat@package.json:53 and react@package.json:56 Because you never seem to use anything from the
react
packagepreact-router@package.json:54 Never used
Also, kind of off topic, regarding the last one; I've tried to implement redux in my own preact app with
react-redux
andpreact-router
, but theProvider
component is complaining about its children, which are theRouter
component with its children:Any clue?