styled API prop interpolation: Cannot read property '0' of undefined #981
Labels
bug report 🦗
Issue is probably a bug, but it needs to be checked
bundler: webpack 📦
Issue is related to webpack bundler
needs: complete repro 🖥️
Issue need to have complete repro provided
Environment
3.0.0-beta.19
5.51.1
14.18.1
Description
This is a regression from
3.0.0-beta.19
, affecting both@linaria/react
and@linaria/atomic
styled
API, when using (any?) dynamic interpolation such as the simplestcolor: ${(props) => props.color};
Reproducible Demo
I've been trying to put the most minimal reproducible demo, as I'm unsure why tests do seem to pass (could be from
evaluate
?). I'm having some issues running./website
locally but I think the issue is likely replicable there, provided any dynamic interpolation is added (will confirm!)3.0.0-beta.19
does not apply the color rule: see codesandbox https://codesandbox.io/s/linaria-beta-19-styled-prop-239072?file=/src/App.js3.0.0-beta.18
works as expected: see codesandbox https://codesandbox.io/s/linaria-beta-18-styled-prop-0pqm6x?file=/src/App.js.19
dependencies, JFYI in case this sandbox doesn't work as expected, it's from not being able to actually force locking down to.18
)No changes in between, only upgrading from .18 to .19 (and using a custom yarn resolution to avoid the issue with
loader-utils v3
(see #977)The text was updated successfully, but these errors were encountered: