Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NodeJs compatibility #54

Open
BartJanvanAssen opened this issue Feb 11, 2020 · 2 comments
Open

NodeJs compatibility #54

BartJanvanAssen opened this issue Feb 11, 2020 · 2 comments

Comments

@BartJanvanAssen
Copy link

BartJanvanAssen commented Feb 11, 2020

Hey all, I was working with this plugin on the node version 12.15.0 and over there it wasn't working... by downgrading to 12.4.0 it did work. Met me post more details soon, but any suggestions where this is coming from?

The issue I encountered was that the webpack build kept spinning reaching some of the first encountered styled-components. repeatedly the same file. (implementation of the component made no difference). simple for example: styled.div with background color

also running the test directly in the repo seems to be broken?
image

after this test i downgraded to node 11.9.0 via nvm. result is that jest is run within seconds!
image

checking versions it seems like version 12.10 is correct, higher is broken. confirmed 12.11.0 is not working, (12.11.1 also broken )

@jack-sylvere
Copy link

Same issue here, seems to come from deasync loopWhile.
Removing deasync and forcing postcss to use synchronous process (replacing process(...).then(...) by formattedCss = process(...). css) seems to fix the problem but is highly discouraged by postcss documentation ...

@luanraithz
Copy link

Deasync is no longer a dependency.
Commit on Jun 3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants