#Error Deploying to Deno Deploy LODASH isEmpty.js

1 messages · Page 1 of 1 (latest)

cold sail
#

I am having issues deploying to deno deploy. All was well 3 days ago. Made some changes today - but not in terms of adding/deleting libraries. Today I am getting this error: "Error The deployment failed: HTTP status client error (404 Not Found) for url (https://raw.githubusercontent.com/lodash/lodash/master/isEmpty.js)" Appreciate anyone's help here!

near hazel
#

That URL is invalid. Either you or one of your libraries was importing a lodash library, unversioned, straight from Github. If one of your libraries are at fault, you can still fix it by using an import map.

cold sail
#

Thanks for the quick response. Yes I believe one of my libraries was using it. (I actually don’t know which one, to be honest.) Can you point me to using import map?

near hazel
#

Sure. In this case, you could remap

https://raw.githubusercontent.com/lodash/lodash/master/

to

https://deno.land/x/[email protected]/

Your import map (inside your deno.jsonc) would look something like

{
  "imports": {
    "https://raw.githubusercontent.com/lodash/lodash/master/": "https://deno.land/x/[email protected]/"
  }
}