swc-project / swc-project/swc-node

`ERR_INVALID_URL_SCHEME`: `data:text/javascript,` is not supported like `ts-node`

Open
#667 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2k
Forks
95
Avg merge
14d 11h
Merged PRs (30d)
1

Description

I'm trying to workaround ERR_UNKNOWN_FILE_EXTENSION error for .mts files. 🤣

related:

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the ERR_INVALID_URL_SCHEME failure for data:text/javascript, and compare the behavior with the related ts-node workaround described in the issue. Done means .mts files can use the reported data URL scenario without the unsupported-scheme error.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
tooling
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.