julianburr / sketch-plugin-boilerplate Goto Github PK
View Code? Open in Web Editor NEWBasic development boilerplate for Sketch plugins
License: MIT License
Basic development boilerplate for Sketch plugins
License: MIT License
First of all, great boilerplate!
But I'm having a issue when I try start the webview via yarn. I get the following error:
$ node scripts/start-webview.js
Failed to compile.
Cannot read property 'indexOf' of undefined
error Command failed with exit code 1
Do you have any idea how to fix this? #5
The build doesn't complete properly the first time because the frameworks directory is missing.
Perhaps you could add an empty hidden file (e.g. .foo
) so that frameworks will be uploaded with the directory?
Quick-fix for anyone cloning is just to create frameworks
directory locally (ie. in ~sketch-plugin-boilerplate/src/).
This is such an awesome repo!
I'm having trouble inspecting the DOM and seeing any console errors for a panel/window. I can inspect the application via safari but it doesn't have the elements panel.
Any help would be greatly appreciated!
Thanks in advance,
Jono
Is it possible to send requests within Skech ?
Hey @julianburr , I'm having trouble using the provided Sketch API reference to get a user input within sketch. I want to do something like this:
var UI = require('sketch/ui');
const response = UI.getStringFromUser("Enter a string", 'e.g. hello');
but when I run yarn build on the boilerplate, I get this error on build:
ModuleNotFoundError: Module not found: Error: Can't resolve 'sketch/ui'
Any suggestions would be much appreciated!!
Hello! In Mac OS Catalina, sketch version 59.1. When I use yarn start
,there is no effect when I change something.
Please help me. Thank you!
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.