-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A dependency is broken #379
Comments
I've tried replacing it in the |
missing node path from std deno module |
I created a fix on my fork, just use like this:
|
@jerlam06 Thanks! |
No need to use a fork, I was able to patch the imports by adding the following to {
"imports": {
// stuff that was already there
"https://deno.land/std/node/util.ts": "node:util",
"https://deno.land/std/node/events.ts": "node:events",
"https://deno.land/std/node/assert.ts": "node:assert",
"https://deno.land/std/node/url.ts": "node:url",
"https://deno.land/std/node/stream.ts": "node:stream"
}
} |
I overrided imports in
|
Hey everyone, Thanks a lot for looking into this. I'm not active on this repo hence the delay! Is the If someone has a fix outside of Just let me know |
After investigating this further, I think we have two options: Option 1: Go back to using the original
This doesn't seem true, because Option 2: Keep using |
Awesome, thanks @hugopeixoto for all these details! Let's go with option 2, and if the pr does not get merged, we can directly use your fork too |
I did a simple fix using the {
// tasks, etc...
"scopes": {
"https://raw.githubusercontent.com/Zhomart/dex/": {
"https://deno.land/std/": "https://deno.land/std@0.177.0/"
}
}
} Immediately fixed the issue for me.
|
Sorry for being a bit late to the party, but I agree that option 2 from above seems the best candidate. In the interim, the patch in my previous comment provides a quick and immediate fix. It also adds a badge to deno.land/x/denodb that says The scopes capability is very powerful, but unfortunately is lacking in documentation; many people just don't know what it does. I've deployed it as a hotfix for similar broken dependency issues on several occasions now. |
hey there! I'm trying to apply this scopes as a temporary fix but when I try to build the docker image with deno app I still got the dependency broken...
Do I need to do any other change besides the scopes on |
@pvillaverde Sorry for the late response; hopefully you've got this figured out by now. I'm not too familiar with using Docker + Deno unfortunately, but have you tried applying the scopes in an Using the You can force the command to use the import map like so: /bin/sh -c deno cache --import-map=./import_map.json ./src/deps.ts Let me know how it goes.
|
@nberlette Thanks for answering! Dont worry for the late response, I have it working with the current version and just couldn't update it with some new features. I'm using the latest deno:alpine image as base, so it should work with the scopes properties on deno.json. However with the import_map.json it worked! I had tried it before but didn't realise that on the DockerFile when I run de "deno cache" I haven't copied all the files yet, just the deps.ts. Once I copied the import_map.json it build all the dependencies. Thanks!! |
Sweet, I'm glad to hear it worked for you. Take care brotha! |
https://github.com/eveningkid/denodb/blob/master/deps.ts#L5 uses dex from https://raw.githubusercontent.com/Zhomart/dex/930253915093e1e08d48ec0409b4aee800d8bd0c/mod-dyn.ts, which depends on the latest version of Deno std: https://raw.githubusercontent.com/Zhomart/dex/930253915093e1e08d48ec0409b4aee800d8bd0c/lib-dyn/deps.ts
The latest version doesn't seem to provide node/events anymore. Thus denodb is no longer installable:
The text was updated successfully, but these errors were encountered: