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

Error with Cheerio #237

Open
bug145 opened this issue Aug 13, 2024 · 4 comments
Open

Error with Cheerio #237

bug145 opened this issue Aug 13, 2024 · 4 comments

Comments

@bug145
Copy link

bug145 commented Aug 13, 2024

I am encountering this error, which is likely why the CSS file is not being created.

Here’s how I’m using it:
svgtofont({ src: tempFolder, dist: dst, emptyDist: true, log: true, fontName: 'flux', css: false, svgicons2svgfont: { fixedWidth: true, centerHorizontally: true, normalize: true, fontHeight: 200, }, })

Here is the error message:

`
SUCCESS SVG font successfully created! 18:35:30
╰┈▶ C:\Users\user\projects\test\assets.font\icons\font.svg
SUCCESS TTF font successfully created! 18:35:31
╰┈▶ C:\Users\user\projects\test\assets.font\icons\font.ttf 18:35:31
SUCCESS EOT font successfully created! 18:35:31
╰┈▶ C:\Users\user\projects\test\assets.font\icons\font.eot
SUCCESS WOFF font successfully created! 18:35:31
╰┈▶ C:\Users\user\projects\test\assets.font\icons\font.woff 18:35:32
SUCCESS WOFF2 font successfully created! 18:35:32
╰┈▶ C:\Users\user\projects\test\assets.font\icons\font.woff2
SvgToFont:CLI:ERR: Cannot read properties of undefined (reading 'load') 18:35:32

at createSvgSymbol (node_modules\svgtofont\lib\utils.js:236:33)
at exports.default (node_modules\svgtofont\lib\index.js:123:43)
`

@marcos-castrillo
Copy link

I'm having the exact same error, it was working fine before. I'm using v4.2.2.

@skyerday
Copy link

cheerio 1.0.0 issue.
workaround:
rollback to 1.0.0-rc.12

Yarn
"resolutions": { "cheerio": "1.0.0-rc.12" },

@jaywcjlove
Copy link
Owner

@jaywcjlove
Copy link
Owner

@skyerday @marcos-castrillo @bug145 Upgrade to v5.0.3

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