Open ajshortt opened 8 years ago
Same. Getting the same error after upgrading to Sierra.
Same error Node : 0.12.15 NPM : 2.15.1 svg2png : ^0.3.0
Well I tried updating to the latest version of gulp-svg2png
and resolved the issue but my deployment setup/server doesnt like the use of ES6 const which the latest version has
I'm having the same issue with the ES6 syntax, @ajshortt. I believe it's because of this issue domenic/svg2png#58 where svg2png version 3.1.1 and up requires Node 6.x.
I think forcing svg2png
to be at version 3.1.0 would correct this, but I'm unsure if the creator of this plugin would be open to forcing that specific version.
D'oh! Sorry, I missed the fact that you are on Node 6.x, @ajshortt. The newest version of gulp-svg2png (2.0.2) works for me with Node 6.x.
Was having exactly the same issues.
Node v6.x and svg2png v2.0.2 is working for me.
@aaronbushnell Thanks for pointing out the latest Node requirements, I totally missed that!
You bet, @matthewmcclatchie!
Same error as well Node : 4.6.1 NPM : 2.15. svg2png : 0.3.0
Same error too. Upgraded to macOS Sierra with the latest version of svg2png v2.0.2 and it stopped working.
.../node_modules/svg2png/lib/svg2png.js:2 const path = require("path"); ^^^^^
I'm having same issue - not sure how to go about solving this?
+1
I'm also seeing the same issue with v1.0.2 of gulp-svg2png. Using it on MacOS Sierra 10.12.6 (16G1036) with
node v4.8.0 npm v2.15.11 nvm v0.33.0
I can confirm that the newer version 2.x works fine, but sadly I cannot update the node version on some of our build environments.
/Users/{user}/workspace/vagrant-all/projects/{project}/node_modules/gulp-svg2png/index.js:49 throw new gutil.PluginError(PLUGIN_NAME, message); ^ Error: Error while converting image. Error: Command failed: /Users/{user}/workspace/vagrant-all/projects/{project}/node_modules/gulp-svg2png/node_modules/svg2png/node_modules/phantomjs/lib/phantom/bin/phantomjs /Users/{user}/workspace/vagrant-all/projects/{project}/node_modules/gulp-svg2png/node_modules/svg2png/lib/converter.js /Users/{user}/workspace/vagrant-all/projects/{project}/web/images/svg/sprite.svg /var/folders/zh/hrbwf4n12jz_djrqqkvhdfjw0000gn/T/59382cbe-151b-403f-90a3-b53e4744481b-sprite.png 1
NPM: 3.10.3 Node: 6.5.0 gulp-svg2png: ^0.3.0
Getting the following error since upgrading to the latest OS