I'm trying to use material-ui and I'm getting react-dom errors, preact-compact is the solution for this?
yes, material-ui uses React-specific APIs like findDOMNode(), Children.*() and String refs. It should work fine with preact-compat. Let me know if that's not the case and we can re-open :)
Ok thanks, checking again I see that the problem is not with material-ui, but yes with react-tap-event-plugin for handle touch / tap / clickevents in material-ui http://www.material-ui.com/#/get-started/installation, I am using preact-boilerplate which has already included all preact-compat settings, see the error in the screenshot
.
Why this error?
Ah yes, you'll need to alias that out for preact-tap-event-plugin in webpack.config.babel.js:
{
resolve: {
alias: {
'react-tap-event-plugin': 'preact-tap-event-plugin'
}
}
}
Most helpful comment
Ah yes, you'll need to alias that out for preact-tap-event-plugin in
webpack.config.babel.js: