My scripts are down here.
`import sketch from 'sketch'
var system = require("../modules/System")
var SharedStyle = require('sketch/dom').SharedStyle
var Artboard = require('sketch/dom').Artboard
var path = require('path')
export default function () {
// Choose the new sketch file.
var chooseFile = system.chooseFile(["sketch"]);
if (!chooseFile) {
return;
}
var count = 0;
var fileURL = NSURL.fileURLWithPath(chooseFile);
var error = MOPointer.alloc().init();
var newDocument = MSDocument.alloc().init();
let wrappedDoc = sketch.fromNative(newDocument)
console.log(wrappedDoc)
console.log(wrappedDoc.sharedTextStyles)
console.log(wrappedDoc.sharedLayerStyles)
console.log(wrappedDoc.colors)
}`
and the last three console.log are all empty arrays.
Can you help me to see what is going wrong?


