dndb icon indicating copy to clipboard operation
dndb copied to clipboard

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

Open KaKi87 opened this issue 3 years ago • 6 comments

Hello,

@denyncrawford, the following code :

import Datastore from 'https://deno.land/x/[email protected]/mod.ts'

throws the following error :

error: Module not found "https://deno.land/std/io/bufio.ts".
    at https://deno.land/x/[email protected]/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

KaKi87 avatar Oct 30 '22 19:10 KaKi87

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

DevP0tion avatar Nov 02 '22 01:11 DevP0tion

@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?

DevP0tion avatar Nov 02 '22 03:11 DevP0tion

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

KaKi87 avatar Nov 02 '22 14:11 KaKi87

Hello ?

KaKi87 avatar Nov 11 '22 15:11 KaKi87

@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

SINE avatar Mar 15 '23 03:03 SINE

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 !

KaKi87 avatar Mar 16 '23 16:03 KaKi87