Comments (8)
This will be fixed in linaria@next (v2.0) they will not depend on core-js anymore
from gatsby-plugin-linaria.
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.
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.
And Gatsby finally switched their core-js dependency to version 3
from gatsby-plugin-linaria.
Unfortunately, this seems to be a problem upstream. 😕 callstack/linaria#420
from gatsby-plugin-linaria.
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.
@silvenon yep, thats pretty much what i had to do for my local project.
from gatsby-plugin-linaria.
Linaria v2 has been released without core-js dependency. closing issue.
from gatsby-plugin-linaria.
Related Issues (20)
- Make CSS Extraction an option. HOT 1
- Setup renovate
- Setup E2E
- Unexpected token 'export' HOT 12
- Breaks Gatsby v3 HOT 1
- Temporary workaround
- Request to set option `cacheDirectory` HOT 2
- TypeError: filename.endsWith is not a function HOT 2
- npm install issue with Gatsby v4.x.x HOT 2
- Unexpected Runtime errors.
- File with extracted CSS styles not link to my output html
- Support for [email protected]? HOT 1
- Dependency Dashboard
- Plugin doesn't work
- Support Linaria v5 and v6
- Option to disable SSR? HOT 4
- Error: Using the "styled" tag in runtime is not supported HOT 3
- Using global styles HOT 5
- Why do we need linaria with gatsbyjs? HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gatsby-plugin-linaria.