Skip to content

Fix: Add missing .js extension to builder ESM import#16

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-builder-esm-import
Draft

Fix: Add missing .js extension to builder ESM import#16
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-builder-esm-import

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jun 3, 2026

The builder module fails at runtime in native ESM environments (Node.js, Deno) due to a missing .js extension in a relative import. This causes Error [ERR_MODULE_NOT_FOUND] when attempting to import the builder API.

Changes

Builder module imports

  • Added .js extension to the import statement in src/builder/schema-builder.ts

The import was updated from:

import { inferIsSetFromTag, TagClass } from "../common/index";

To:

import { inferIsSetFromTag, TagClass } from "../common/index.js";

This aligns with ESM requirements for native module resolution and matches the pattern already used throughout the parser module.

Copilot AI changed the title [WIP] Fix missing .js extension for ESM import in builder Fix: Add missing .js extension to builder ESM import Jun 3, 2026
Copilot AI requested a review from yuki-js June 3, 2026 18:15
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.

Builder ESM import is missing .js extension and fails in Node.js/Deno

2 participants