symbol-spacer-sketch-plugin icon indicating copy to clipboard operation
symbol-spacer-sketch-plugin copied to clipboard

Build doesn't work when running sketch plugin from master.

Open zaneriley opened this issue 6 years ago • 0 comments

Hey @GeertWille!

Running plugins from master ends up not working in sketch. Plugins from the releases .zip work, however.

You can recreate with the following:

npm install
npm run build
  • Move the .sketchplugin file outside the repo folder. If you open the file from within the repo, it' gets deleted and Sketch says it can't find the file.
  • Open plugin
  • Go to plugin in Sketch, and hit preferences.

This is the error from console:

default	10:05:51.822399 -0700	Sketch	Exception: TypeError: null is not an object (evaluating 'context.plugin.urlForResourceNamed(frameLocation).path')

TypeError: null is not an object (evaluating 'context.plugin.urlForResourceNamed(frameLocation).path')
line: 602
column: 70

zaneriley avatar Nov 02 '17 17:11 zaneriley