Cannot find module "better-sqlite3"

#1

The NPM module “better-sqlite3” comes up when you do

var easyDb = require(“better-sqlite3”)

But when it is required with another library, it will not work.
var easyDb = require("@sasial-roblox/easy.db")

easyDb.dbcreate(“Test”)

Errors are at: https://runkit.com/sasial-roblox/5c8dd83341360300136bef63

0 Likes

#2

This is similar to Requiring sqlite3 fails with an error 'Error: Cannot find module'
But, a different module.

0 Likes

#3

A staff replied with this in another topic. I believe better-sqlite3 is a binary package.

0 Likes