-
Notifications
You must be signed in to change notification settings - Fork 414
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
linaria/babel throws error on nested object interpolations within css #333
Comments
Can you share the demo with me? |
https://codesandbox.io/s/rr6z3pop7p check Readme pls |
Thanks! |
I am still getting this error. |
Hi, sorry to issue bump this. Strangely I'm facing this same issue in
Has anyone got any pointers on how to work around this? Thanks! |
Nope, get the same error. Makes the project completely unusable for practical purposes. |
@chrisabrams the original repo works well now. Can you provide the broken one? |
@Anber I too am getting this error and can't have any way around it. Funny thing is it just started happening by itself; it was working as expected earlier. |
Hi @aviral-clarifai |
Hi @Anber I have been strugling with the same issue. It is a copy of this repo https://github.com/vercel/next.js/tree/canary/examples/with-linaria but with |
@M1r1k thank you so much! Now I see that problem appears when a default export is used. |
Released in |
Hi @Anber https://github.com/M1r1k/debug-linaria-interpolatiton-error same repo but with a small tweak - mixed import here If you remove named import and only leave default everything works fine |
Hey @layershifter, look, there is another problem with imports. I wonder, how much more I missed? :) Thank you @M1r1k! The new problem was fixed in |
Hi @Anber, I think that's the last one :D I think the problem is export of external import :) |
@M1r1k sorry, I've missed your message. |
Bug:
What is the current behavior?
When nested objects, which have been created by some helper function, are used within
css
interpolation, pure babel compilation will throw error. webpack plugin works though!Command:
Error:
What is the expected behavior?
babel loader should work the same way as rollup/webpack plugin 👀 ( otherwise issues may/will occur during development - for instance, bundling will work but tests will fail because of this issue )
Please provide your exact Babel configuration and mention your Linaria, Node, Yarn/npm version and operating system.
The text was updated successfully, but these errors were encountered: