-
Notifications
You must be signed in to change notification settings - Fork 71
Open
Description
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?
import webfont from 'webfont';
webfont({
files: 'src/assets/icons/**/*.svg',
fontName: 'my-icons',
dest: 'src/assets/webfont-icons-test',
})
.then((result) => {
console.log('Result: ', result);
return result;
})
.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
Metadata
Metadata
Assignees
Labels
No labels