Skip to content

get_json returns unexpected 404 #314

@arni1981

Description

@arni1981

I have this in my config/importmap file

pin "flatpickr/dist/l10n/is.js", to: "flatpickr--dist--l10n--is.js.js" # @4.6.13  

Now running ./bin/importmap update results in an error, namely

/importmap/npm.rb:95:in `get_json': Unexpected error response 404: {"code":"ResourceNotFound","message":"/flatpickr/dist/l10n/is.js does not exist"} (Importmap::Npm::HTTPError)

This still works fine however ./bin/importmap pin flatpickr/dist/l10n/is.js --from unpkg

This was working fine on Importmap 2.1.0.
I'm running Ruby 3.3.7

If no one can quickly find what is causing this then I'm willing to take a stab at this some day.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions