diff --git a/packages/core-web/src/transport/WorkerClient.ts b/packages/core-web/src/transport/WorkerClient.ts index e340df5..bbf93c4 100644 --- a/packages/core-web/src/transport/WorkerClient.ts +++ b/packages/core-web/src/transport/WorkerClient.ts @@ -16,7 +16,7 @@ export class WorkerClient { constructor() { // Must create the URL inside the constructor for vite - this.worker = new Worker(new URL('./worker.js', import.meta.url), { + this.worker = new Worker(new URL('../worker.js', import.meta.url), { type: 'module', }) this.worker.onmessage = this.handleWorkerMessage.bind(this) @@ -31,7 +31,7 @@ export class WorkerClient { } private handleWorkerError(event: ErrorEvent) { - console.error('Worker error', event) + console.error('Worker error', JSON.stringify(event)) } private handleWorkerMessage(event: MessageEvent) {