datopian / markdowndb

Turn markdown files into structured, queryable data with JS. Build markdown-powered docs, blogs, and sites quickly and reliably.
https://markdowndb.com
MIT License
233 stars 14 forks source link

Module not found: Can't resolve 'better-sqlite3' #44

Closed AdamQuadmon closed 8 months ago

AdamQuadmon commented 10 months ago

Running a NextJs app on a Turborepo gives Module not found issues from knex

Module not found: Can't resolve 'better-sqlite3'

adding better-sqlite3 to package.json will keep asking for the next missing packages (tedious, mysql, mysql2, oracle, etc)


Import trace for requested module:
../../node_modules/.pnpm/knex@2.5.1_better-sqlite3@9.0.0_sqlite3@5.1.6/node_modules/knex/lib/dialects/index.js
../../node_modules/.pnpm/knex@2.5.1_better-sqlite3@9.0.0_sqlite3@5.1.6/node_modules/knex/lib/knex-builder/internal/config-resolver.js
../../node_modules/.pnpm/knex@2.5.1_better-sqlite3@9.0.0_sqlite3@5.1.6/node_modules/knex/lib/knex-builder/Knex.js
../../node_modules/.pnpm/knex@2.5.1_better-sqlite3@9.0.0_sqlite3@5.1.6/node_modules/knex/lib/index.js
../../node_modules/.pnpm/knex@2.5.1_better-sqlite3@9.0.0_sqlite3@5.1.6/node_modules/knex/knex.js
../../node_modules/.pnpm/mddb@0.3.0_better-sqlite3@9.0.0/node_modules/mddb/dist/src/lib/markdowndb.js
../../node_modules/.pnpm/mddb@0.3.0_better-sqlite3@9.0.0/node_modules/mddb/dist/src/index.js
./src/providers/markdowndb.ts
./src/app/page.tsx
rufuspollock commented 10 months ago

@AdamQuadmon thanks for reporting - we'll look into this.

rufuspollock commented 8 months ago

@mohamedsalem401 can you take a look and spend <= 2h to see if you have a sense of what issue is and how long to fix and then we can decide what to do further.

mohamedsalem401 commented 8 months ago

I can't reproduce it. @AdamQuadmon Can you provide more information about the issue and whether it was resolved?

rufuspollock commented 8 months ago

@mohamedsalem401 let's close this as INVALID then with that comment.

mohamedsalem401 commented 8 months ago

INVALID. I tried it on different scenarios and I couldn't reproduce the issue.

rufuspollock commented 8 months ago

@mohamedsalem401 perfect closing comment. Just add invalid label as well.