Pinolero
Pinolero11mo 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
ioB11mo 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
Pinolero11mo 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
ioB11mo 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
Pinolero11mo ago
thanks a billion!!!! I really appreciate your quick help!
More Posts
need to refersh page for message each time a user from different country sends a messageHey I was going through the below deno chat app and found a bug which is the need to referesh the paAPI architecture for generic callbackHi there, I have a general question about code architecture for an API I'm doing. Basically, it listHow can I run `deno test` on all `*.spec.ts` files contains in a specific directory ?Everything is in the question, it seems very strange that we do not have a `pattern` option to speciuseEffect in the islandsSeeing a strange error in the browser window as soon as I add a simple as ```ts useEffect(() => { Basic react server side rendering does not work on Deno Deploy but does locallyThe below application work correctly locally but fails on Deno Deploy. On Deno Deploy, all my responode cryptoHey everyone, can you explain why certain packages such as node/crypto are not included in newer verPretty new to Deno, what is the recommended way to create a monorepo-like in Deno ?Everything is in the question. I tried during the entire week-end to get up & running with monorepo-[fresh] injecting css into head in a componentWhen I inject css in the head of my html in a component, it works perfectly, but when I reuse the coAutosave firing on editing `.ts` files when a separate Deno enabled project is openHello, I am working on slack automation using deno. I'm developing with webstorm, but I'm having a pProblem with parsing `base64url` from a `Buffer (node)`help , it works in bun but not in Deno, I don't know if is a bug from them or it's not implemented h