Open shadoworion opened 6 months ago
Did you run bun install
?
Did you run
bun install
?
Sure
add this deps on your local devDependencies
{
"aws-sdk": "^2.1526.0",
"better-sqlite3": "^9.2.2",
"mock-aws-s3": "^4.0.2",
"mysql": "^2.18.1",
"mysql2": "^3.6.5",
"nock": "^13.4.0",
"oracledb": "^6.3.0",
"pg-query-stream": "^4.5.3",
"sqlite3": "^5.1.6",
"tedious": "^16.6.1"
}
this are
devDependencies
onknex
, but missing to you locally
bun install
bun run build
add this deps on your local
devDependencies
{ "aws-sdk": "^2.1526.0", "better-sqlite3": "^9.2.2", "mock-aws-s3": "^4.0.2", "mysql": "^2.18.1", "mysql2": "^3.6.5", "nock": "^13.4.0", "oracledb": "^6.3.0", "pg-query-stream": "^4.5.3", "sqlite3": "^5.1.6", "tedious": "^16.6.1" }
this are
devDependencies
onknex
, but missing to you locally
bun install
bun run build
I understand that it will fix my problem, but it is bug. It may work without these packages.
Knex requires you to install only drivers you need, not always all drivers. Build works without these packages in ts-node. So it may also work with bun.
Knex requires you to install only drivers you need, not always all drivers. Build works without these packages in ts-node. So it may also work with bun.
this is good news that is working with ts-node, because I have the same issue, the final bundler is 29+ mb
A work-around that I use involves delving into node-modules
- which is always a bad idea. If you want to go this route though, open /node-modules/knex/lib/dialects/index.js
and comment out the drivers you do not want in const dbNameToDialectLoader
. Notice - if you want to build using MySQL2, you must also install MySQL.
add this deps on your local
devDependencies
{ "aws-sdk": "^2.1526.0", "better-sqlite3": "^9.2.2", "mock-aws-s3": "^4.0.2", "mysql": "^2.18.1", "mysql2": "^3.6.5", "nock": "^13.4.0", "oracledb": "^6.3.0", "pg-query-stream": "^4.5.3", "sqlite3": "^5.1.6", "tedious": "^16.6.1" }
this are
devDependencies
onknex
, but missing to you locally
bun install
bun run build
I understand that it will fix my problem, but it is bug. It may work without these packages.
Same here! that works for me, but it's weird to have to do that.
What version of Bun is running?
1.0.20+09d51486e
What platform is your computer?
Darwin 23.2.0 arm64 arm
What steps can reproduce the bug?
What is the expected behavior?
Success build
What do you see instead?
Additional information
This is an optional drivers of knex. I don't need all of them.