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

Unexpected token error when trying simple use case #75

Open
arochettesteinberg opened this issue May 8, 2020 · 1 comment
Open

Unexpected token error when trying simple use case #75

arochettesteinberg opened this issue May 8, 2020 · 1 comment

Comments

@arochettesteinberg
Copy link

Hi,

I've been trying to convert a very simple set of SVG into a font using your tool but I keep running into the same error.

icon-font-generator *.svg --out icon
Always results in:

\AppData\Roaming\npm\node_modules\icon-font-generator\bin\icon-font-generator:7 const { removeUndefinedKeys } = require('../lib/utils') ^ SyntaxError: Unexpected token { at exports.runInThisContext (vm.js:73:16) at Module._compile (module.js:443:25) at Object.Module._extensions..js (module.js:478:10) at Module.load (module.js:355:32) at Function.Module._load (module.js:310:12) at Function.Module.runMain (module.js:501:10) at startup (node.js:129:16) at node.js:814:3

I've got ruby 2.6.6 installed on my Win10 machine.

Any clue?

Thank you very much!

@arochettesteinberg
Copy link
Author

Mac OS doesn't bring much better results (running with ruby 2.3.3)
/usr/local/lib/node_modules/icon-font-generator/lib/index.js:29 async function generate(options = {}) { ^^^^^^^^ SyntaxError: Unexpected token function at Object.exports.runInThisContext (vm.js:76:16) at Module._compile (module.js:545:28) at Object.Module._extensions..js (module.js:582:10) at Module.load (module.js:490:32) at tryModuleLoad (module.js:449:12) at Function.Module._load (module.js:441:3) at Module.require (module.js:500:17) at require (internal/module.js:20:19) at Object.<anonymous> (/usr/local/lib/node_modules/icon-font-generator/bin/icon-font-generator:8:23) at Module._compile (module.js:573:32)

Wonder what I'm doing wrong here.

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

1 participant