Comments (9)
Hi @jonoroboto , thanks for the kind words. I'm glad to hear that you plan on using it on your projects.
Can you provide me with the gatsby-config.js
and package.json
so I can check what is going on under the hood? Also, does this issue happen right after you've installed my plugin, are there any special steps to reproduce it? Additionally, have you tried removing node_modules, yarn.lock, running yarn clean
and reinstalling the packages?
from gatsby-omni-font-loader.
Just a quick update - looking at this right now, but having an issue with emotion moving the core package naming. Will be on this for as long as it takes, appreciate the swift response.
from gatsby-omni-font-loader.
@jonoroboto I've ran some of the test cases on a newest version of Gatsby, but I couldn't reproduce the issue. From the stack trace you've attached, It seems like the issue is completely internal within the Helmet package, as it doesn't link to the any code from the font plugin or your src
code. So I'm not sure what is going on.
As I can see from the websites attached (they look great, by the way) I can see that the plugin works well here https://roboto.studio/
In any case, I'll need more detail to properly trace the issue, if it is related to the plugin. In any case, keep me posted. You can fork and clone the plugin repo into project-root/plugins
folder and run the plugin locally to debug it. If you manage to fix the issue, feel free to submit a PR.
from gatsby-omni-font-loader.
Ok update - I think this might be the issue. It could be due to the way they've changed naming convention in the latest emotion update. We're using the same package, and it broke a bunch of our stuff
from gatsby-omni-font-loader.
Full sized screenshot
from gatsby-omni-font-loader.
Yeah, I had to deal with that issue few days ago. Quick tip regarding the emotion issue:
You'll need to use the beta version of gatsby-plugin-emotion
until they release the next version. 5.1. will support Emotion 11. Or you can just downgrade emotion back to latest version 10.
"gatsby-plugin-emotion": "^5.1.0-next.0",
Let me know if I can close the issue. Cheers!
from gatsby-omni-font-loader.
@jonoroboto Weird that the emotion error is relating it to my plugin, as it is not using Emotion all all. All styles are just regular React inline styles.
const hiddenStyles: React.CSSProperties = {
position: "absolute",
overflow: "hidden",
clip: "rect(0 0 0 0)",
height: "1px",
width: "1px",
margin: "-1px",
padding: "0",
border: "0",
}
I think that when you upgrade it to version 11, the issue will just go away. Maybe it's just detecting all CSS as error, including that of my plugin.
from gatsby-omni-font-loader.
No probs Adrian, really appreciate the help.
I'm going to close the issue for now, as there's a lot more going wrong than just the omni font loader, that's completely on my side. Thanks again, will give you an update when this is fixed up 👍
from gatsby-omni-font-loader.
@jonoroboto Thank you. I checked everything with Emotion 11. Everything works as expected. No build errors occur with Emotion 11. I am attaching a working config and screenshots.
Package.json
"@emotion/react": "^11.1.1",
"gatsby-plugin-emotion": "5.1.0-next.0",
"gatsby-omni-font-loader": "^1.1.1",
gatsby-browser.js
`gatsby-plugin-emotion`,
{
resolve: "gatsby-omni-font-loader",
options: {
enableListener: true,
preconnect: [
"https://fonts.gstatic.com"
],
web: [
{
name: "Henny Penny",
file:
"https://fonts.googleapis.com/css2?family=Henny+Penny&display=swap",
},
{
name: "Roboto",
file:
"https://fonts.googleapis.com/css2?family=Roboto&display=swap",
},
],
},
},
from gatsby-omni-font-loader.
Related Issues (19)
- Errors when leaving out settigs HOT 3
- gatsby-browser.js causes issue in mono-repo HOT 2
- Add classes to HTML instead of the BODY HOT 3
- Preloading doesn't work when deploying with netlify HOT 3
- Module not found: Error: Can't resolve './defaults' in '.../node_modules/gatsby-omni-font-loader/consts' HOT 4
- Setting MIME type? HOT 2
- More complex example HOT 1
- Error: Failed to decode downloaded font: <URL> HOT 6
- does it support font subsets (greek, latin-ext, ...)?
- Module parse failed - potential Webpack config conflict HOT 10
- How to handle variants in async mode HOT 2
- Integration with npm-typeface fonts
- Text flickers before switch to icon with Material Icons font HOT 10
- FOUT doesn't support for different font-weight HOT 1
- Feature Request: Remove usage of `react-helmet` HOT 7
- Only load fonts that are used in a page
- Crossorigin value automatically assigned and the value is invalid.
- Error: Unable to find plugin HOT 1
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-omni-font-loader.