eveningkid / denodb

MySQL, SQLite, MariaDB, PostgreSQL and MongoDB ORM for Deno

Home Page:https://eveningkid.com/denodb-docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Basic test is taking 15 minutes to run

aarongeorge opened this issue · comments

commented

Just trying to get a basic setup happening and running into a super long wait when importing denodb.

test.ts

import { DataTypes, Database, Model, PostgresConnector } from 'https://deno.land/x/denodb/mod.ts';

console.log('Hello world')

Deno.json

{
	"compilerOptions": {
		"allowJs": true,
		"lib": ["deno.window"],
		"strict": true
	},
	"lint": {
		"files": {
			"include": ["src/"],
			"exclude": []
		},
		"rules": {
			"tags": ["recommended"]
		}
	},
	"fmt": {
		"files": {
			"include": ["src/"],
			"exclude": []
		},
		"options": {
			"useTabs": true,
			"lineWidth": 80,
			"indentWidth": 1,
			"singleQuote": true,
			"proseWrap": "always"
		}
	}
}

And running it with: deno run --config deno.json --allow-net=localhost --allow-read --allow-env src/test.ts

Causes Deno to run for more than 15 minutes before logging the console.log

deno --version
deno 1.17.0 (release, aarch64-apple-darwin)
v8 9.7.106.15
typescript 4.5.2

This is a super simplified example, but I noticed my project was taking forever to run when I added the denodb import.

Happy to provide anything else you need to try and debug this.

I'm running it on an M1 Apple Max chip on 12.0.1 (Monterey)

commented

Resolved by updating to Deno 1.18.0