pg-mem
pg-mem copied to clipboard
Deno: Uncaught ReferenceError: IMigrate is not defined
Describe the bug
warning: Cannot load module "https://deno.land/x/[email protected]/node_modules/immutable/dist/immutable-nonambient.d.ts".
at https://deno.land/x/[email protected]/mod.ts:3:15
If the source module contains only types, use `import type` and `export type` to import it instead.
error: Uncaught ReferenceError: IMigrate is not defined
import MigrationFile = IMigrate.MigrationFile
To Reproduce
mod.ts
import { newDb } from 'https://deno.land/x/pg_mem/mod.ts';
new (newDb().adapters.createPg().Client)
deno run mod.ts
pg-mem version
Deno: 1.15.1 pg-mem: 2.1.5
Cannot reproduce. It's already not possible to import { newDb } from 'https://deno.land/x/pg_mem/mod.ts'; because the module does not compile.
# fails:
deno cache https://deno.land/x/pg_mem/mod.ts
Update on pg-mem 2.1.7
$ deno cache https://deno.land/x/[email protected]/mod.ts
error: TS2339 [ERROR]: Property 'default' does not exist on type 'Hash'.
export default code as any as typeof types.default;
~~~~~~~
at https://deno.land/x/[email protected]/mod.ts:4:44