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)
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 codeAnd 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.