Skip to content

Conversation

@dsherret
Copy link
Member

This:

import { DenoWorkspace } from "@deno/loader";

const workspace = new DenoWorkspace({
  nodeConditions: undefined,
});

Was erroring:

error: Uncaught (in promise) Error: TypeError: Reflect.get called on non-object
  const ret = new Error(getStringFromWasm0(arg0, arg1));
              ^
    at __wbindgen_error_new (https://jsr.io/@deno/loader/0.0.7/src/lib/rs_lib.internal.js:982:15)
    at <anonymous> (wasm://wasm/00fd13ae:1:3222054)
    at <anonymous> (wasm://wasm/00fd13ae:1:3084942)
    at <anonymous> (wasm://wasm/00fd13ae:1:3154713)
    at new DenoWorkspace (https://jsr.io/@deno/loader/0.0.7/src/lib/rs_lib.internal.js:378:22)
    at new DenoWorkspace (https://jsr.io/@deno/loader/0.0.7/src/mod.ts:129:19)
    at file:///Users/marvinh/dev/denoland/esbuild-plugin-deno/foo.ts:3:19

Copy link
Contributor

@marvinhagemeister marvinhagemeister left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dsherret dsherret merged commit 4eb1519 into main Jun 10, 2025
@dsherret dsherret deleted the fix_handle_someone_providing_undefined_workspace_options branch June 10, 2025 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants