Incompatibility with Preact
See original GitHub issueDescription
Can’t get react-md to work with Preact, even with preact-compat installed. I’ve created an app skeleton with the “default” template, followed the react-md installation instructions and additionally loaded webfontloader (should this be mentioned on the Install page, BTW?), but I get the error below when I npm run dev
:
Images/Screenshots
Link to a gist or code sample where the issue can be reproduced
https://github.com/dandv/preact-react-md/
I’ve also filed the issue in Preact’s repo at https://github.com/developit/preact-compat/issues/502.
Version
Preact 8.3.1 React-MD 1.5.0
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (7 by maintainers)
Top Results From Across the Web
Switching to Preact (from React)
preact /compat is our compatibility layer that allows you to leverage the many libraries of the React ecosystem and use them with Preact....
Read more >Preact Compat incompatibility in Jest tests - Stack Overflow
I'm really not sure what this error means, and I'm confused because preact-compat is supposed to allow use of libraries with React dependencies....
Read more >enzyme-adapter-preact-pure | Yarn - Package Manager
Version 3.x of the adapter supports Preact v10+. ... Added a partial fix for an incompatibility between Preact's JSX element type and the...
Read more >When should I use preact compat?
That's why it's called preact/compat . So what does the compatibility layer contain that makes libraries written for React seamlessly work ...
Read more >gatsby-plugin-preact - npm
Note: This plugin uses Preact X, any version prior to v10.0.0 is incompatible with Gatsby v2. Install. npm install gatsby-plugin-preact preact preact-render-to- ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Disclaimer: I’m part of the preact team
@billneff79 That is an issue with how
refs
are applied in current preact. Our issue to track that is https://github.com/developit/preact/issues/1177 .I haven’t seen any problems by adding the
setTimeout
workaround for my existing react apps as well as the preact demo, so I’ll release a patch with this change tonight