Using the "styled" tag in runtime is not supported #1413
Labels
bug report 🦗
Issue is probably a bug, but it needs to be checked
bundler: rollup 🗞️
Issue is related to rollup bundler
needs: complete repro 🖥️
Issue need to have complete repro provided
platform: ssr 🛠️
Issue related to SSR
Environment
rollup -c --environment NODE_ENV:production
Description
I have faced with the problem by using
@linaria/rollup
plugin:I looked for similar issues and is it: one and two. In the first one I have found out advice to use it with
@linaria/babel-preset
. So I did it, but in vain. Nothing has changed.Bisides that I of cource tryed to follow this steps with
@wyw-in-js/rollup
. But to be honest it doesn't work at all (even forcss
tag). I tryed use it also with@wyw-in-js/babel-preset
, but it changes nothing. (is there anyone who has it working?). So I returned to options with @linaria/core as at least partially working.By the way, it seems the second one hasn't been solved, but for some reason closed for some reason despite the problem still is.
Reproducible Demo
Placed in
react-hmr-linaria
branch here. How to reproduce:Via degit:
or via git:
then:
And then open with live server
dist/index.html
file or just open the file in a browserThe text was updated successfully, but these errors were encountered: