You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
importwebfontfrom'webfont';webfont({files: 'src/assets/icons/**/*.svg',fontName: 'my-icons',dest: 'src/assets/webfont-icons-test',}).then((result)=>{console.log('Result: ',result);returnresult;}).catch((error)=>{console.log('There has been an error:\n',error);});
> 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:
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: