Following error shows up in Sketch Dev Tools
MOJavaScriptException: TypeError: null is not an object (evaluating 'library.sketchObject.document().documentData') main-view.js:42:62 forEach [native code] main-view.js:39:20 script.js:16:30 __skpm_run script.js:1368:19 __skpm_run [native code]
Following error shows up in Sketch Dev Tools
MOJavaScriptException: TypeError: null is not an object (evaluating 'library.sketchObject.document().documentData') main-view.js:42:62 forEach [native code] main-view.js:39:20 script.js:16:30 __skpm_run script.js:1368:19 __skpm_run [native code]