question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Packages with periods in the name say version range is not resolvable when using a pinned version

See original GitHub issue

Hi! 👋 Thanks for this great package.

Running with the --package command isn’t working with ahoy.js and chart.js for some reason. I’m guessing maybe it’s the period? I tested with the asn1.js package as well (which we’re not using) and it also broke.

>> bundle-phobia --package package.json
ℹ @sentry/browser (5.26.0) has 4 dependencies for a weight of 69.07KB (19.28KB gzipped)
ℹ @sentry/integrations (5.26.0) has 4 dependencies for a weight of 56.35KB (16.66KB gzipped)
✖ resolving ahoy.js@^0.3.5 failed: Specified version range '^0.3.5' is not resolvable
bundle-phobia failed: Specified version range '^0.3.5' is not resolvable

Same thing with chart.js if I remove ahoy:

bundle-phobia --package package.json                [3:59:33 PM]
✖ resolving chart.js@^2.9.3 failed: Specified version range '^2.9.3' is not resolvable
bundle-phobia failed: Specified version range '^2.9.3' is not resolvable

Running it for ahoy alone shows 0.3.7:

>> bundle-phobia ahoy.js
ℹ ahoy.js (0.3.7) has 1 dependencies for a weight of 6.83KB (2.82KB gzipped)

Running it without the pin on 0.3.5 works:

>> bundle-phobia ahoy.js@0.3.5
ℹ ahoy.js (0.3.5) has 1 dependencies for a weight of 6.71KB (2.77KB gzipped)

Running it with the pin on 0.3.5 fails:

bundle-phobia ahoy.js@^0.3.5
✖ resolving ahoy.js@^0.3.5 failed: Specified version range '^0.3.5' is not resolvable
bundle-phobia failed: Specified version range '^0.3.5' is not resolvable

Removing ahoy.js and chart.js from package.json allows it to run successfully. My hypothesis is that it’s the period causing issues.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
AdrieanKhisbecommented, Oct 22, 2020

Cool 😃 Thanks you too for your update @bbugh !

1reaction
bbughcommented, Oct 22, 2020

It works great! Thanks so much for the update.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Learning the Basics - Gradle User Manual
When using a strict version, it is possible to use a version range, using the format supported by Gradle. In addition, there are...
Read more >
How do I resolve "Cannot find module" error using Node.js?
Using npm install installs the module into the current directory only (in a subdirectory called node_modules ). Is app.js located under ...
Read more >
Versioning - GitHub
This page has versioning notes about version numbers, deterministic builds, pinning, vendoring, and discussion from peers.
Read more >
DNS/ENUM Guidelines for Service Providers & GRX/IPX ...
Domain names used on the Internet DNS (and owned by GSMA) ... "Generic Access to the A/Gb interface; Stage 2", version 6.6.0 or....
Read more >
What's The Deal With Snap Packages? - Hackaday
But such is the case with snap. Developed by Canonical as a faster and easier way to get the latest versions of software...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found