I’ve started playing around with creating Sketch plugins and have run into a few challenges here and there. One of the most annoying issue I’ve found is when you build your plugin, but you don’t see the changes reflected in Sketch. It seems this most often occurs when something has happened with the symlink between your development version and Sketch’s plugin folder. To fix this, you need to delete the version in plugin folder and recreate the symlink.

First, in the terminal, navigate to the Sketch app plugin folder:

cd ~/Library/Application\\ Support/com.bohemiancoding.sketch3/Plugins

Then delete your plugin. If it is a file, use the command:

rm YOUR-FILE-NAME

If it is a folder, use this command:

rm -R YOUR-FOLDER-NAME

Once you’ve deleted the plugin from the plugin folder, you need to recreate the symlink using this command:

cd ~/Desktop/Projects/Sketch/YourPluginDirectory && ./node_modules/.bin/skpm-link

The first path is wherever your build directory is located, and is relative to your /Users/ folder, while the second should be . If you get an error saying “No such file or directory”, then the path to your build directory is wrong.

I found this fix on this GitHub thread: https://github.com/BohemianCoding/SketchAPI/issues/193

Leave a Reply

Your email address will not be published. Required fields are marked *