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: Invalid character entity #66

Closed
pensierinmusica opened this issue Jul 2, 2015 · 2 comments
Closed

Error: Invalid character entity #66

pensierinmusica opened this issue Jul 2, 2015 · 2 comments

Comments

@pensierinmusica
Copy link
Contributor

Hi,

gulp-iconfont doesn't seem to work on my system: OS X 10.10.4 with Node v0.12.5.

During the installation I get lots of warnings (as per nfroidure/ttf2woff2#4). Then when I try to run the Gulp task I get this error:

events.js:85
      throw er; // Unhandled 'error' event
            ^
Error: Invalid character entity
Line: 12
Column: 45
Char: _
    at error (/Users/Ale/Dropbox/Docs/Good Karma/Projects/Distilled/code/front/polymer/node_modules/gulp-iconfont/node_modules/gulp-svgicons2svgfont/node_modules/svgicons2svgfont/node_modules/sax/lib/sax.js:652:8)
    at strictFail (/Users/Ale/Dropbox/Docs/Good Karma/Projects/Distilled/code/front/polymer/node_modules/gulp-iconfont/node_modules/gulp-svgicons2svgfont/node_modules/svgicons2svgfont/node_modules/sax/lib/sax.js:675:22)
    at Object.write (/Users/Ale/Dropbox/Docs/Good Karma/Projects/Distilled/code/front/polymer/node_modules/gulp-iconfont/node_modules/gulp-svgicons2svgfont/node_modules/svgicons2svgfont/node_modules/sax/lib/sax.js:1356:11)
    at SAXStream.write (/Users/Ale/Dropbox/Docs/Good Karma/Projects/Distilled/code/front/polymer/node_modules/gulp-iconfont/node_modules/gulp-svgicons2svgfont/node_modules/svgicons2svgfont/node_modules/sax/lib/sax.js:228:16)
    at PassThrough.ondata (/Users/Ale/Dropbox/Docs/Good Karma/Projects/Distilled/code/front/polymer/node_modules/gulp-iconfont/node_modules/gulp-svgicons2svgfont/node_modules/readable-stream/lib/_stream_readable.js:571:20)
    at PassThrough.emit (events.js:107:17)
    at PassThrough.Readable.read (/Users/Ale/Dropbox/Docs/Good Karma/Projects/Distilled/code/front/polymer/node_modules/gulp-iconfont/node_modules/gulp-svgicons2svgfont/node_modules/readable-stream/lib/_stream_readable.js:406:10)
    at flow (/Users/Ale/Dropbox/Docs/Good Karma/Projects/Distilled/code/front/polymer/node_modules/gulp-iconfont/node_modules/gulp-svgicons2svgfont/node_modules/readable-stream/lib/_stream_readable.js:780:26)
    at resume_ (/Users/Ale/Dropbox/Docs/Good Karma/Projects/Distilled/code/front/polymer/node_modules/gulp-iconfont/node_modules/gulp-svgicons2svgfont/node_modules/readable-stream/lib/_stream_readable.js:760:3)
    at afterTick (/Users/Ale/Dropbox/Docs/Good Karma/Projects/Distilled/code/front/polymer/node_modules/gulp-iconfont/node_modules/gulp-svgicons2svgfont/node_modules/readable-stream/node_modules/process-nextick-args/index.js:11:8)

Also the first svg file picked to generate the iconfont gets renamed prepending uEA01- to its name. I have no idea what is causing this weird behaviour.

Any thoughts? Thanks!

@nfroidure
Copy link
Owner

It looks like one of your SVG files is simply corrupted. If you think it is not normal, please submit the SVG with an issue to the sax parser.

About the file renaming, it is due to the https://github.com/nfroidure/gulp-svgicons2svgfont#optionsappendunicode options. But it is an opt-in behavior, if you didn't set this option, than it is a bug and you can open an issue about it.

@pensierinmusica
Copy link
Contributor Author

Re-saving the svg file with the parameters indicated on the readme fixed the problem, thanks!

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

2 participants