Skip to content

4.2.4

Compare
Choose a tag to compare
@restjohn restjohn released this 07 Apr 17:55
· 8 commits to 4.2.x since this release
  • Update CanvasKit libs with libs from develop to fix runtime error in Node 18:
error initializing CanvasKit: TypeError: Failed to parse URL from /Users/stjohnr/sandbox/geopackage-js/canvaskit/canvaskit.wasm
    at Object.fetch (node:internal/deps/undici/undici:14152:11) {
  [cause]: TypeError: Invalid URL
      at new NodeError (node:internal/errors:399:5)
      at URL.onParseError (node:internal/url:565:9)
      at new URL (node:internal/url:645:5)
      at new Request (node:internal/deps/undici/undici:6947:25)
      at fetch2 (node:internal/deps/undici/undici:13315:25)
      at Object.fetch (node:internal/deps/undici/undici:14150:18)
      at fetch (node:internal/process/pre_execution:237:25)
      at /Users/stjohnr/sandbox/geopackage-js/canvaskit/canvaskit.js:1:940488
      at /Users/stjohnr/sandbox/geopackage-js/canvaskit/canvaskit.js:1:940858
      at /Users/stjohnr/sandbox/geopackage-js/canvaskit/canvaskit.js:1:940906
      at /Users/stjohnr/sandbox/geopackage-js/lib/canvas/canvasKitCanvasAdapter.ts:5:491
      at new Promise (<anonymous>)
      at CanvasKitCanvasAdapter.initialize (/Users/stjohnr/sandbox/geopackage-js/lib/canvas/canvasKitCanvasAdapter.ts:5:358)
      at Function.<anonymous> (/Users/stjohnr/sandbox/geopackage-js/lib/canvas/canvas.ts:1:30363)
      at step (/Users/stjohnr/sandbox/geopackage-js/lib/canvas/canvas.ts:1:28732)
      at Object.next (/Users/stjohnr/sandbox/geopackage-js/lib/canvas/canvas.ts:1:25730)
      at /Users/stjohnr/sandbox/geopackage-js/lib/canvas/canvas.ts:1:24895
      at new Promise (<anonymous>)
      at __awaiter (/Users/stjohnr/sandbox/geopackage-js/lib/canvas/canvas.ts:1:24120)
      at Function.Canvas.initializeAdapter (/Users/stjohnr/sandbox/geopackage-js/lib/canvas/canvas.ts:1:29818)
      at Function.<anonymous> (/Users/stjohnr/sandbox/geopackage-js/lib/context/context.ts:1:26751)
      at step (/Users/stjohnr/sandbox/geopackage-js/lib/context/context.ts:1:25175)
      at Object.next (/Users/stjohnr/sandbox/geopackage-js/lib/context/context.ts:1:22083)
      at /Users/stjohnr/sandbox/geopackage-js/lib/context/context.ts:1:21227
      at new Promise (<anonymous>)
      at __awaiter (/Users/stjohnr/sandbox/geopackage-js/lib/context/context.ts:1:20434)
      at Function.Context.initializeContext (/Users/stjohnr/sandbox/geopackage-js/lib/context/context.ts:1:26475)
      at Object.<anonymous> (/Users/stjohnr/sandbox/geopackage-js/test/setupNodeEnv.js:44:46)
      at step (/Users/stjohnr/sandbox/geopackage-js/test/setupNodeEnv.js:32:23)
      at Object.next (/Users/stjohnr/sandbox/geopackage-js/test/setupNodeEnv.js:13:53)
      at /Users/stjohnr/sandbox/geopackage-js/test/setupNodeEnv.js:7:71
      at new Promise (<anonymous>)
      at __awaiter (/Users/stjohnr/sandbox/geopackage-js/test/setupNodeEnv.js:3:12)
      at Context.<anonymous> (/Users/stjohnr/sandbox/geopackage-js/test/setupNodeEnv.js:39:29)
      at callFn (/Users/stjohnr/sandbox/geopackage-js/node_modules/mocha/lib/runnable.js:387:21)
      at Hook.Runnable.run (/Users/stjohnr/sandbox/geopackage-js/node_modules/mocha/lib/runnable.js:379:7)
      at next (/Users/stjohnr/sandbox/geopackage-js/node_modules/mocha/lib/runner.js:384:10)
      at Immediate.<anonymous> (/Users/stjohnr/sandbox/geopackage-js/node_modules/mocha/lib/runner.js:425:5)
      at processImmediate (node:internal/timers:476:21) {
    input: '/Users/stjohnr/sandbox/geopackage-js/canvaskit/canvaskit.wasm',
    code: 'ERR_INVALID_URL'
  }