Hey everyone,
I'm new in writing Sketch plugins, but made a big progress in the past few weeks, but now i've encountered something I cannot understand and solve.
I'm using VSCode to write the plugin and run it to Sketch and I use import like this:
import sketch from 'sketch'
import { createAnswerBlocks } from './create_answer_blocks'
import { createPickerBlocks } from './create_picker_blocks'
I saw another plugin on the web that uses UIDialog and wanted to use it also (It simplify the way you create the dialogs on Sketch) and when I try to import as they did I get an error.
They import using:
@import "lib/uidialog.js";
This is the class:
https://github.com/ingrammicro/puzzle-publisher/blob/master/PuzzlePublisher.sketchplugin/Contents/Sketch/lib/uidialog.js
This is how they use it:
https://github.com/ingrammicro/puzzle-publisher/blob/master/PuzzlePublisher.sketchplugin/Contents/Sketch/menu-conf-plugin-publishing.js
This is the plugin source:
https://github.com/ingrammicro/puzzle-publisher
What am I doing wrong?