microsoft / microsoft/vscode-cdp-proxy

Module load error in 0.2.1

Open
#7 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
15
Forks
5
Avg merge
1d 13h
Merged PRs (30d)
3

Description

Unfortunately the change to close #6 introduced a new error when requiring the module.

https://npm.runkit.com/vscode-cdp-proxy

var vscodeCdpProxy = require("vscode-cdp-proxy")

Will now fail with:

Error: Cannot find module './cdp'
Require stack:
- /app/available_modules/1634688999000/vscode-cdp-proxy/dist/index.js
- /app/index.js

index.js (https://unpkg.com/browse/vscode-cdp-proxy@0.2.1/dist/index.js) now contains

__exportStar(require("./cdp"), exports);

but we only have cdp.d.ts type definitions.

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 require("vscode-cdp-proxy") failure described in the issue and inspect dist/index.js alongside the cdp.d.ts file. Trace why index.js exports ./cdp when only type definitions are present; done means requiring version 0.2.1 no longer reports that missing module.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
devtools
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.