denyncrawford / dndb

A Deno ๐Ÿฆ• persistent, embeddable and optimized NoSQL database for JS & TS

Home Page:https://dndb.crawford.ml

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Module not found "https://deno.land/std/io/bufio.ts"

KaKi87 opened this issue ยท comments

Hello,

@denyncrawford, the following code :

import Datastore from 'https://deno.land/x/dndb@0.3.3/mod.ts'

throws the following error :

error: Module not found "https://deno.land/std/io/bufio.ts".
    at https://deno.land/x/dndb@0.3.3/deps.ts:5:27

@AmateurPotion, since you recently updated your fork, I'm guessing you fixed that, but how to import your module ?

The following code :

import Datastore from 'https://raw.githubusercontent.com/AmateurPotion/dndb/main/mod.ts'

throws the following error :

error: Relative import path "dndb/executor.ts" not prefixed with / or ./ or ../
    at https://raw.githubusercontent.com/AmateurPotion/dndb/main/src/mod.ts:15:22

Thanks

I was also in the process of updating because I ran into a similar problem :<

@KaKi87
์ €๋Š” Import_map.json ์„ ์ด์šฉํ•ด ๊ฐ€์ ธ์˜ค๊ธฐ ๊ฒฝ๋กœ๋“ค์„ ์ •๋ฆฌํ–ˆ์Šต๋‹ˆ๋‹ค. ํ•ด๋‹น ์ƒ๋Œ€ ๊ฒฝ๋กœ ๋ฌธ์ œ๋Š” ide์˜ deno ๋ฒ„์ „ ๋ฌธ์ œ์ธ๋“ฏ ์‹ถ์€๋ฐ ํ˜น์‹œ ์–ด๋–ค ide๋ฅผ ์‚ฌ์šฉํ•˜์‹œ๋Š” ์ค‘์ธ์ง€ ์•Œ๋ ค์ฃผ์‹ค ์ˆ˜ ์žˆ์œผ์‹ ๊ฐ€์š”?

google translate)
I used Import_map.json to organize the import paths. The relative path problem seems to be a problem with the deno version of the ide. Could you please tell me which ide you are using?

The relative path problem seems to be a problem with the deno version

I upgraded to the latest version (1.27.0) which doesn't change anything.

Additionally, would you please enable issues on your own repository ?

Thanks

Hello ?

commented

@KaKi87
@AmateurPotion has done a few changes/cleanups on a forked repo. I have done another fork and fixed some issues with Deno 1.31.2 - Please see if it works for you.
https://github.com/SINE/dndb

commented

Actually, I got so desperate in the meantime, that I created my own library, and a cross-runtime one : xedb.

Provided without any warranty, especially since there is no unit testing yet, but working for my use case.

Thanks anyway !