Closed
Description
I believe this is related to #9.
I have Typescript, with gatsby-plugin-typescript@2.0.15
.
If I use v1.1.1
of this plugin, everything works.
If I update to v1.1.2
I get:
WebpackError: Using the "css" tag in runtime is not supported. Make sure you have set up the Babel plugin correctly.
- css.js:4 css
[lib]/[linaria]/lib/core/css.js:4:1
...
(in the config I have this plugin listed after the Typescript one, as instructed)
Activity
silvenon commentedon May 27, 2019
Should be working in v1.1.3, please try again.
newash commentedon May 29, 2019
🎉 Thank you, it does!
yurkoturskiy commentedon May 30, 2019
I've just updated everything and got the same error using v1.1.3. With v1.1.2 and v1.1.1, everything works fine. I don't use typescript. I rechecked on a blank project before posting and got the same error.
silvenon commentedon May 31, 2019
Well, isn't hacking webpack configs fun… I'll check it out.
Fix Linaria loader not applying to JS rule
silvenon commentedon May 31, 2019
@guandjoy ok, both should now work in v1.1.4.
yurkoturskiy commentedon Jun 4, 2019
@silvenon Thank you!
yurkoturskiy commentedon Jun 30, 2019
Same error raises when I run:
gatsby build
That starts to happen after I've updated Gatsby. Same with all versions of your plugin. Develop mode works fine.
silvenon commentedon Jul 2, 2019
Hm, I wasn't able to reproduce the error. Which versions of Gatsby and gatsby-plugin-linaria are you using?
cometkim commentedon Jul 3, 2019
@silvenon I think this is the same issue with #17
cometkim commentedon Jul 4, 2019
This would be working after #18 merged.
yurkoturskiy commentedon Jul 6, 2019
@silvenon here is the small repo with two branches https://github.com/guandjoy/gatsby-linaria-test
master - latest versions
prev - versions I used when wrote the comment.
But the result is the same. Now it raises the error in both develop and build cases.
12 remaining items