-
Notifications
You must be signed in to change notification settings - Fork 69
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
TypeError: webfont is not a function #618
Comments
nevermind, I fixed it! You should probably change the readme file to put: import { webfont } from 'webfont'; instead of: import webfont from 'webfont'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to use your library for my project, but when I try to execute the file I get the error saying webfont is not a function, can you help me?
> node devops/scripts/generate-icon-font.js file:///[...]/devops/scripts/generate-icon-font.js:5 webfont({ ^ TypeError: webfont is not a function at file:///[...]/devops/scripts/generate-icon-font.js:5:3 at ModuleJob.run (node:internal/modules/esm/module_job:194:25) Node.js v18.17.1
The text was updated successfully, but these errors were encountered: