Pinolero
Pinolero14mo ago

Error Deploying to Deno Deploy LODASH isEmpty.js

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!
4 Replies
ioB
ioB14mo ago
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.
Pinolero
Pinolero14mo ago
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?
ioB
ioB14mo ago
Sure. In this case, you could remap
https://raw.githubusercontent.com/lodash/lodash/master/
https://raw.githubusercontent.com/lodash/lodash/master/
to
https://deno.land/x/lodash@4.17.15-es/
https://deno.land/x/lodash@4.17.15-es/
Your import map (inside your deno.jsonc) would look something like
{
"imports": {
"https://raw.githubusercontent.com/lodash/lodash/master/": "https://deno.land/x/lodash@4.17.15-es/"
}
}
{
"imports": {
"https://raw.githubusercontent.com/lodash/lodash/master/": "https://deno.land/x/lodash@4.17.15-es/"
}
}
Pinolero
Pinolero14mo ago
thanks a billion!!!! I really appreciate your quick help!