stackdot / sketch-preview Goto Github PK
View Code? Open in Web Editor NEWGenerate a static site (ya know, like github pages) from a Sketch file
Generate a static site (ya know, like github pages) from a Sketch file
Generating Sketch Preview... Please be patient
build
ERROR: app.bundle.js from UglifyJs
SyntaxError: Unexpected token: name (direction) [app.bundle.js:104,8]
[18:13:07] gulp-imagemin: Minified 0 images
All Done!
Nodejs: v6.9.4,
MacOS:10.11.5
Error: Command failed: /usr/local/lib/node_modules/sketch-preview/sketchtool/bin/sketchtool export artboards --include-symbols --output=/some/dir with spaces/_artboards --scales=2.0 --use-id-for-name=YES --format=jpg /some/dir with spaces/file.sketch
Couldn't find document spaces/_artboards.
Hi, I followed the installation instructions and installed the sketch-preview
globally, but when I run:
sketch-preview --input=myfile.sketch
I get the following error:
Generating Sketch Preview... Please be patient
build
/Users/MyUser/.nvm/versions/node/v7.4.0/lib/node_modules/sketch-preview/node_modules/orchestrator/index.js:153
throw err;
^
Error: Command failed: /Users/MyUser/.nvm/versions/node/v7.4.0/lib/node_modules/sketch-preview/sketchtool/bin/sketchtool export artboards --include-symbols --output=/Users/MyUser/Sites/my-project/_artboards --scales=2.0 --use-id-for-name=YES --format=jpg /Users/MyUser/Sites/my-project/myfile.sketch
2017-07-31 16:20:18.377 sketchtool[69584:3264514] DB Error: 26 "file is encrypted or is not a database"
2017-07-31 16:20:18.378 sketchtool[69584:3264514] DB Query: PRAGMA journal_mode=OFF
2017-07-31 16:20:18.378 sketchtool[69584:3264514] DB Path: /Users/MyUser/Sites/my-project/myfile.sketch
Failed to open document file:///Users/MyUser/Sites/my-project/myfile.sketch
at ChildProcess.exithandler (child_process.js:211:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:885:16)
at Socket.<anonymous> (internal/child_process.js:334:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:501:12)
[1] 69583 segmentation fault sketch-preview --input=myfile.sketch
The file I am trying to preview is not encrypted.
I am running NodeJS v7.4.0 on MacOS Sierra.
I don't have a valid license for Sketch, is this an issue?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.