Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zaneriley opened this issue Nov 2, 2017 · 0 comments
Open

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

zaneriley opened this issue Nov 2, 2017 · 0 comments

Comments

@zaneriley
Copy link
Contributor

zaneriley commented Nov 2, 2017

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 zaneriley changed the title Build broke when running sketch plugin from master. Build doesn't work when running sketch plugin from master. Nov 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant