Comments (6)
I am experiencing the same issue.
/Users/viet/.rvm/gems/ruby-3.2.2/gems/importmap-rails-2.0.1/lib/importmap/npm.rb:89:in `find_latest_version': undefined method `dig' for "version not found: dom":String (NoMethodError)
latest_version = response.dig('dist-tags', 'latest')
^^^^
from /Users/viet/.rvm/gems/ruby-3.2.2/gems/importmap-rails-2.0.1/lib/importmap/npm.rb:26:in `block in outdated_packages'
from /Users/viet/.rvm/gems/ruby-3.2.2/gems/importmap-rails-2.0.1/lib/importmap/npm.rb:17:in `each'
from /Users/viet/.rvm/gems/ruby-3.2.2/gems/importmap-rails-2.0.1/lib/importmap/npm.rb:17:in `with_object'
from /Users/viet/.rvm/gems/ruby-3.2.2/gems/importmap-rails-2.0.1/lib/importmap/npm.rb:17:in `outdated_packages'
from /Users/viet/.rvm/gems/ruby-3.2.2/gems/importmap-rails-2.0.1/lib/importmap/commands.rb:78:in `outdated'
from /Users/viet/.rvm/gems/ruby-3.2.2/gems/thor-1.3.0/lib/thor/command.rb:28:in `run'
from /Users/viet/.rvm/gems/ruby-3.2.2/gems/thor-1.3.0/lib/thor/invocation.rb:127:in `invoke_command'
from /Users/viet/.rvm/gems/ruby-3.2.2/gems/thor-1.3.0/lib/thor.rb:527:in `dispatch'
from /Users/viet/.rvm/gems/ruby-3.2.2/gems/thor-1.3.0/lib/thor/base.rb:584:in `start'
from /Users/viet/.rvm/gems/ruby-3.2.2/gems/importmap-rails-2.0.1/lib/importmap/commands.rb:141:in `<main>'
from <internal:/Users/viet/.rvm/rubies/ruby-3.2.2/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
from <internal:/Users/viet/.rvm/rubies/ruby-3.2.2/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
from /Users/viet/.rvm/gems/ruby-3.2.2/gems/bootsnap-1.18.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from /Users/viet/.rvm/gems/ruby-3.2.2/gems/zeitwerk-2.6.13/lib/zeitwerk/kernel.rb:34:in `require'
from ./bin/importmap:4:in `<main>'
I've identified the problematic pin which returns the String response:
pin "@floating-ui/utils/dom", to: "@floating-ui--utils--dom.js" # @0.2.1
Removing the line executes the outdated
command successfully.
We have had this @floating-ui/utils/dom
dependency pinned since last July. It has changed versions many time since and the outdated
command never had any issues with it.
from importmap-rails.
from importmap-rails.
I submitted #246 which goes over the problem and proposed a first solution.
from importmap-rails.
I get the same issue with the package:
pin "@github/webauthn-json/browser-ponyfill", to: "@github--webauthn-json--browser-ponyfill.js" # @2.1.1
from importmap-rails.
It looks like the npmjs registry doesn't like package names that are more than one folder deep.
from importmap-rails.
I have the same issue with the following pin pin "cross-fetch/polyfill", to: "cross-fetch--polyfill.js"
I get it when i want to update packages using bin/importmap update
from importmap-rails.
Related Issues (20)
- asset_path('es-module-shims.min') does not work in production HOT 1
- files ending in `_index.js` have `index` replaced with an empty string HOT 3
- Why do certain pins disappear in production? HOT 2
- Unpin command causing net error HOT 3
- Confusing message on 'update'
- Unable to unpin HOT 1
- Persistent 404 error when pinning HOT 11
- Package works when pinned from JSPM but not when downloaded HOT 2
- Break in iOS 16.2 when upgrading from 1.2.3 to 2.0.1 HOT 4
- turbo:load event not fired anymore in test environment after upgrade from 1.2.3 to 2.0.1 HOT 3
- Feature suggestion: optional `process.env` polyfill
- Multiple importmaps HOT 6
- Importmap update removes pins via http HOT 1
- importmap pin/update removes preload: false
- ga.jspm.io never updates HOT 3
- Add option to `bin/importmap pin URL` to create direct/remote link without downloading
- Option to 're-sync' vendor folder HOT 2
- How to add jquery in importmaps rails 7 HOT 2
- `update` does not update a package even when `outdated` shows the new version HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from importmap-rails.