When version > 2.4, Failed to Connect to the Backend Error: pkgJson.main?.endsWith is not a function
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 67/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- node.js, typescript
- Domain
- devtools
Research direction
Start by searching the codebase for pkgJson.main?.endsWith and trace how package metadata is read in the backend. Reproduce the failure with npx node-modules-inspector using the reported setup, then check nearby tests for package entry handling. Done when the backend connects without this error for the reported case and relevant tests pass.
Written by the indexing model from the issue text.
Description
Describe the bug
When version > 2.4, Failed to Connect to the Backend Error: pkgJson.main?.endsWith is not a function
Reproduction
npx node-modules-inspector
System Info
System:
OS: Windows 10 10.0.17763
Binaries:
Node: 22.22.3
npm: 10.9.8
Browsers:
Chrome: 157.0.8103.51
Used Package Manager
npm
Validations
- Follow our Code of Conduct
- Read the Contributing Guide.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
- The provided reproduction is a minimal reproducible of the bug.
Contributions
- I am willing to submit a PR to fix this issue
- I am willing to submit a PR with failing tests (actually just go ahead and do it, thanks!)
- Dominant language
- TypeScript
- Stars
- 3k
- Forks
- 92
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from antfu/node-modules-inspector
-
Support bun dedupePossibly taken @MichielTondeur claimed this 63 days ago. Openenhancement
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
antfu/node-modules-inspector#214 ·
-
Multiple Versions page shows incorrect 'npm-registry dedupe' commandPossibly taken @kael-wq claimed this 63 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 65/100
antfu/node-modules-inspector#213 ·
-
Support aube package managerPossibly taken @lumirelle claimed this 8 days ago. Openenhancement
Difficulty 3/5 1-2 days Newbie friendliness 38/100
antfu/node-modules-inspector#174 · 1 reaction ·
-
Fails to detect MIT license in require-like packagePossibly taken @clanzhang claimed this 81 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 45/100
antfu/node-modules-inspector#145 ·
-
Redundant codePossibly taken @clanzhang claimed this 77 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
antfu/node-modules-inspector#123 · 2 comments ·
All issues in antfu/node-modules-inspector
Similar issues
-
bot:ai-assisted component:faucet status:untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
midnightntwrk/midnight-faucet-api#222 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
bluesky-social/social-app#12545 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
knaw-huc/textannoviz#742 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
aws/agentcore-cli#2940 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
cloudflare/realtimekit-ui#219 ·
Maintainers usually reply within 1 day