Giter VIP home page Giter VIP logo

Comments (8)

cometkim avatar cometkim commented on June 4, 2024 4

This will be fixed in linaria@next (v2.0) they will not depend on core-js anymore

from gatsby-plugin-linaria.

silvenon avatar silvenon commented on June 4, 2024 3

Apart from incorrectly built stable versions of Linaria, the problem was also the discrepancy in versions of core-js between Linaria and Gatsby, so the full workaround is to also install core-js v3 locally:

yarn add linaria@^1.4.0-beta.3
yarn add core-js

I also documented this in the readme under "Known issues".

from gatsby-plugin-linaria.

cometkim avatar cometkim commented on June 4, 2024 1

And also gatsby, they still use core-js v2 and planned to drop it in gatsby 3. (yeah it's long term plan)

from gatsby-plugin-linaria.

cometkim avatar cometkim commented on June 4, 2024 1

And Gatsby finally switched their core-js dependency to version 3

gatsbyjs/gatsby#15601

from gatsby-plugin-linaria.

silvenon avatar silvenon commented on June 4, 2024

Unfortunately, this seems to be a problem upstream. 😕 callstack/linaria#420

from gatsby-plugin-linaria.

gu-stav avatar gu-stav commented on June 4, 2024

Hi, I just wanted to ask what the status of this issue is? As far as I can see core-js v3 support was added in the recent beta and it seems, that this issue should be resolved according to callstack/linaria#539.

I tried installing [email protected] but got the same error. Do we need to extend the babel config mentioned in callstack/linaria@c67f40d?

from gatsby-plugin-linaria.

BlackFenix2 avatar BlackFenix2 commented on June 4, 2024

@silvenon yep, thats pretty much what i had to do for my local project.

from gatsby-plugin-linaria.

cometkim avatar cometkim commented on June 4, 2024

Linaria v2 has been released without core-js dependency. closing issue.

from gatsby-plugin-linaria.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.