Packages with periods in the name say version range is not resolvable when using a pinned version
See original GitHub issueHi! 👋 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:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Cool 😃 Thanks you too for your update @bbugh !
It works great! Thanks so much for the update.