ProgressNS / sidekick-feedback

This repository is for feedback regarding NativeScript Sidekick. Use the issues system here to submit feature requests or vote for existing ones.
45 stars 9 forks source link

Worker not working in Xcode. #444

Open prabh08 opened 5 years ago

prabh08 commented 5 years ago

We had application developed in Nativescript 5 and now we migrated to Nativescript 6. All application is working fine but when I trying to make build in xcode I am getting error related to worker.js Here is my example code

const worker = require("nativescript-worker-loader!./first-tab-worker.js");
var worker = new worker();

And here is error that I am getting:- file:///app/bundle.js:7347:42: JS ERROR TypeError: Object is not a constructor (evaluating 'new WorkerScript()') (lldb)

Please help me on this.

NickIliev commented 5 years ago

@prabh08 is your webpack.config.js updated (and generated with nativescript-dev-webpack@1.3.0) and looking like this