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
When I only generate one svg image to icon-font. The error occurred as below:
$ icon-font-generator src/assets/icons/*.svg -o icon-dist
Generating font kit from 1 SVG icons
(node:34523) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'red' of undefined
at fail (/Users/XXX/XX/XXXXX/node_modules/icon-font-generator/bin/icon-font-generator:88:31)
at fontGenerator.generate.catch.err (/Users/XXX/XX/XXXXX/node_modules/icon-font-generator/bin/icon-font-generator:77:79)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
(node:34523) 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:34523) [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.
✨ Done in 0.41s.
I debug the code and find webfonts-generator will return a error " Fail! Checksum error in glyf".
This error is a string, so "err.message.red" will return this error, and script will be broken.
function fail(err) {
if (typeof err === 'string' || err instanceof errors.ValidationError) {
console.error(err.message.red)
process.exit()
}
if (err instanceof Error) { throw err }
}
The text was updated successfully, but these errors were encountered:
When I only generate one svg image to icon-font. The error occurred as below:
I debug the code and find webfonts-generator will return a error " Fail! Checksum error in glyf".
This error is a string, so "err.message.red" will return this error, and script will be broken.
The text was updated successfully, but these errors were encountered: