cruise-automation / webviz

web-based visualization libraries
https://webviz.io/
Apache License 2.0
2.08k stars 412 forks source link

Failed to execute 'importScripts' on 'WorkerGlobalScope': The script at 'https://unpkg.com/@loaders.gl/pcd@3.1.8/dist/pcd-worker.js' failed to load. #738

Open linjFnst2017 opened 2 years ago

linjFnst2017 commented 2 years ago

import { PCDLoader } from '@loaders.gl/pcd'; import { load } from '@loaders.gl/core'; pcdBinaryData=xxx; const pcdData = await load(new Blob([new Uint8Array(pcdBinaryData.data)]), PCDLoader);

then get error like this: webviz-core/shared/runInBrowser.js [runInBrowser error] Error: Error: Failed to load worker pcd (#1 of 3) from https://unpkg.com/@loaders.gl/pcd@3.1.8/dist/pcd-worker.js. Uncaught NetworkError: Failed to execute 'importScripts' on 'WorkerGlobalScope': The script at 'https://unpkg.com/@loaders.gl/pcd@3.1.8/dist/pcd-worker.js' failed to load. in :5:3 at WorkerThread._getErrorFromErrorEvent (webpack-internal:///./node_modules/@loaders.gl/worker-utils/dist/esm/lib/worker-farm/worker-thread.js:80:12) at Worker.worker.onerror (webpack-internal:///./node_modules/@loaders.gl/worker-utils/dist/esm/lib/worker-farm/worker-thread.js:101:25) {} WARNING: /home/lwx1042024/player2_v1.0/AutoProphet-player2/packages/webviz-core/shared/runInBrowser.js Error: Error: Failed to load worker pcd (#1 of 3) from https://unpkg.com/@loaders.gl/pcd@3.1.8/dist/pcd-worker.js. Uncaught NetworkError: Failed to execute 'importScripts' on 'WorkerGlobalScope': The script at 'https://unpkg.com/@loaders.gl/pcd@3.1.8/dist/pcd-worker.js' failed to load. in :5:3 at WorkerThread._getErrorFromErrorEvent (webpack-internal:///./node_modules/@loaders.gl/worker-utils/dist/esm/lib/worker-farm/worker-thread.js:80:12)