Styled-jsx: Keeping external styles

Created on 21 May 2017  路  7Comments  路  Source: vercel/styled-jsx

Getting the following error when importing styles and using

Module build failed: SyntaxError: Expected a template literal or String literal as the child of the JSX Style tag (eg: <style jsx>{some css}</style>), but got Identifier

Any help is much appreciated! :)

Most helpful comment

We should release this week

All 7 comments

I tried writing and that works, but ignores live style injection and requires clicking the refresh button...

closing because i just saw this has been addressed. its in the docs but not released yet :(

https://github.com/zeit/styled-jsx/issues/193

@wearevilla I will try to release this week

@giuseppeg you're the best! thank you! :D

Thank you guys, any ETA when external styles will be released to npm? would love to try it with next.

We should release this week

@giuseppeg thank you

Was this page helpful?
0 / 5 - 0 ratings

Related issues

corysimmons picture corysimmons  路  4Comments

davibe picture davibe  路  5Comments

jaydenseric picture jaydenseric  路  5Comments

ryandeussing picture ryandeussing  路  3Comments

nkzawa picture nkzawa  路  5Comments