Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Muli download fail in webpack build #35

Open
atoupet-toki opened this issue Feb 19, 2020 · 5 comments
Open

Muli download fail in webpack build #35

atoupet-toki opened this issue Feb 19, 2020 · 5 comments

Comments

@atoupet-toki
Copy link

Hi!
I tried to download Muli font in a not so older project (last build in novembre 2019) with webpack and got this error:

% building modules 358/358 modules 0 active(node:25615) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'map' of undefined at getVariantCss (PATH_TO_PROJECT/node_modules/google-fonts-webpack-plugin/src/GoogleWebfonts.js:23:25) at variants.forEach.variant (PATH_TO_PROJECT/node_modules/google-fonts-webpack-plugin/src/GoogleWebfonts.js:70:16) at Array.forEach (<anonymous>) at font.info.then.info (PATH_TO_PROJECT/node_modules/google-fonts-webpack-plugin/src/GoogleWebfonts.js:67:14) at process.internalTickCallback (internal/process/next_tick.js:77:7) (node:25615) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:25615) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

I tried to replace this by another and works pretty well. Trid to use Muli in another project and it's failing with same code error.
Do you guys get something on it ??
Thanks :)

@Syndesi
Copy link

Syndesi commented Jul 3, 2020

This happened to an existing project of mine as well, currently looking for a fix/alternative.

@Syndesi
Copy link

Syndesi commented Jul 3, 2020

I downloaded all required fonts with https://google-webfonts-helper.herokuapp.com/fonts and include them as static resources.

@atoupet-toki
Copy link
Author

Did the same thing .... but shoudnt be the solution :) We cannot use multiple solutions on multiple projects :)

@smoothie
Copy link

smoothie commented Aug 7, 2020

On Google Fonts Muli has been renamed to Mulish, which on the other hand works with the latest release.

So we can use Mulish and stuff works as expected.

Can be validated by visiting the Google Font repo which is a fork of vernobile MuliFont.

@appzone
Copy link

appzone commented Feb 23, 2021

i got the same error with the "Lato" font also

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants