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
{{ message }}
This repository has been archived by the owner on Mar 5, 2018. It is now read-only.
Cloned the repo then ran npm install and gulp build having made no modifications to the code at this point.
What browser and device I was using
Windows 10, Git Bash
What I expected to see
Style guide build completed successfully! logged in the terminal window.
What I saw
[09:19:22] Starting 'svg2png'...
C:\Users\Ash\Documents\Work\gov-au-ui-kit\node_modules\gulp-svg2png\index.js:49
throw new gutil.PluginError(PLUGIN_NAME, message);
^
Error: Error while converting image.Error: TypeError: 'undefined' is not a function (evaluating 'el.getBBox()')
phantomjs://webpage.evaluate():5
phantomjs://webpage.evaluate():35
phantomjs://webpage.evaluate():35
Unable to calculate dimensions.
TypeError: 'null' is not an object (evaluating 'dimensions.width')
Additional information (optional)
Adding XML declaration to the start of .svg files where it was missing solves the issue.
<?xml version="1.0" encoding="UTF-8"?>
If the above was omitted for optimisation but again needs to be included for Windows to play nice, perhaps the addition of SVG Optimizer might come in handy. Node package for Gulp is gulp-svgo.
The text was updated successfully, but these errors were encountered:
What I did
Cloned the repo then ran
npm install
andgulp build
having made no modifications to the code at this point.What browser and device I was using
Windows 10, Git Bash
What I expected to see
Style guide build completed successfully!
logged in the terminal window.What I saw
Additional information (optional)
Adding XML declaration to the start of
.svg
files where it was missing solves the issue.<?xml version="1.0" encoding="UTF-8"?>
If the above was omitted for optimisation but again needs to be included for Windows to play nice, perhaps the addition of SVG Optimizer might come in handy. Node package for Gulp is gulp-svgo.
The text was updated successfully, but these errors were encountered: