Skip to content

Category X: jschardet pulled in by @codingame/monaco-vscode-api #4461

@bobbai00

Description

@bobbai00

What happened?

`jschardet` (npm) is LGPL-2.1, an ASF Category X license, and cannot ship in an Apache binary distribution. It is pulled in transitively by the direct dependency `@codingame/monaco-vscode-api` (declared in `frontend/package.json` as `"vscode": "npm:@codingame/monaco-vscode-api@8.0.4"`).

How to reproduce?

```
grep -A3 '^"vscode@npm' frontend/yarn.lock
```

Output shows `@codingame/monaco-vscode-api` declares `jschardet: "npm:3.1.3"` in its dependencies.

Version

1.1.0-incubating (Pre-release/Master)

Commit Hash (Optional)

ef66364

Proposed fix

Options:

  • Replace `@codingame/monaco-vscode-api` with a narrower Monaco/VS Code API integration that does not ship charset detection.
  • Use Yarn's `resolutions` or an import map to stub `jschardet` with a no-op compatible shim at build time.
  • Remove the codepath that triggers `jschardet` loading and mark it as an explicitly unsupported VS Code feature in Texera's frontend.

Was this authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Claude Opus 4.7)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions