[ Warn ] Duplication of preset - Web Fonts #2536
QaahirStewart
started this conversation in
General
Replies: 1 comment 1 reply
-
I have the same issue. It seems to work but there is a warning.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey, guys. How can I get rid of this error? I'm trying to use presetWebFonts with the Google provider and Fontshare provider. Only way i got it working is to duplicate the web font array. Ex. below.
presetWebFonts({
provider: "google",
fonts: {
Inter: "Inter",
Poppins: "Poppins",
Roboto: "Roboto",
Lato: "Lato",
Montserrat: "Montserrat",
Pacifico: "Pacifico",
Oswald: "Oswald",
Raleway: "Raleway",
Courgette: "Courgette",
Oxygen: "Oxygen",
Rubik: "Rubik",
Ubuntu: "Ubuntu",
Arvo: "Arvo",
Caveat: "Caveat",
Sriracha: "Sriracha",
VT323: "VT323",
Syncopate: "Syncopate",
Enriqueta: "Enriqueta",
Cabinet: "Cabinet",
},
}),
presetWebFonts({
provider: "fontshare",
fonts: {
Chillax: "Chillax",
Ranade: "Ranade",
Panchang: "Panchang",
Zodiak: "Zodiak",
Sentient: "Sentient",
Supreme: "Supreme",
Author: "Author",
Telma: "Telma",
Neco: "Neco",
Alpino: "Alpino",
Quilon: "Quilon",
Pally: "Pally",
Erode: "Erode",
Nippo: "Nippo",
Sharpie: "Sharpie",
Bevellier: "Bevellier",
Technor: "Technor",
Britney: "Britney",
Styro: "Styro",
Hoover: "Hoover",
Kalam: "Kalam",
Quicksand: "Quicksand",
},
}),
],
Beta Was this translation helpful? Give feedback.
All reactions