Skip to content
This repository was archived by the owner on Jan 16, 2023. It is now read-only.

how to fix that problem #1

Open
eliyaho-chananya opened this issue May 18, 2021 · 0 comments
Open

how to fix that problem #1

eliyaho-chananya opened this issue May 18, 2021 · 0 comments

Comments

@eliyaho-chananya
Copy link

eliyaho-chananya commented May 18, 2021

go to file (in node_modules)
\knex\lib\knex.js

search for
Dialect = require(

you will see a line looks like

Dialect = require("./dialects/${resolvedClientName}/index.js");

change it to what you using (for example sqlite3)

Dialect = require("./dialects/sqlite3/index.js");

then run ncc again

i know this is tricky but that the only way i found how to solve it

this problem is because ncc cannot resolve dynamic requires

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant