Skip to content

TS: Using the *** tag in runtime is not supported. #13

Closed
@newash

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

silvenon commented on May 27, 2019

@silvenon
Collaborator

Should be working in v1.1.3, please try again.

newash

newash commented on May 29, 2019

@newash
Author

🎉 Thank you, it does!

yurkoturskiy

yurkoturskiy commented on May 30, 2019

@yurkoturskiy

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

silvenon commented on May 31, 2019

@silvenon
Collaborator

Well, isn't hacking webpack configs fun… I'll check it out.

added a commit that references this issue on May 31, 2019
4d74e30
silvenon

silvenon commented on May 31, 2019

@silvenon
Collaborator

@guandjoy ok, both should now work in v1.1.4.

yurkoturskiy

yurkoturskiy commented on Jun 4, 2019

@yurkoturskiy

@silvenon Thank you!

yurkoturskiy

yurkoturskiy commented on Jun 30, 2019

@yurkoturskiy

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

silvenon commented on Jul 2, 2019

@silvenon
Collaborator

Hm, I wasn't able to reproduce the error. Which versions of Gatsby and gatsby-plugin-linaria are you using?

cometkim

cometkim commented on Jul 3, 2019

@cometkim
Owner

@silvenon I think this is the same issue with #17

cometkim

cometkim commented on Jul 4, 2019

@cometkim
Owner

This would be working after #18 merged.

yurkoturskiy

yurkoturskiy commented on Jul 6, 2019

@yurkoturskiy

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is neededupstream

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      TS: Using the *** tag in runtime is not supported. · Issue #13 · cometkim/gatsby-plugin-linaria