question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Incompatibility with Preact

See original GitHub issue

Description

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

image

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:closed
  • Created 5 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
marvinhagemeistercommented, Sep 6, 2018

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 .

1reaction
mlaursencommented, Sep 20, 2018

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

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found