I'm attempting to use sqlite3 with node.js, I'm on macOS. and I've tried everything imaginable to try and fix the problem but as soon as i try to run,
const sqlite3 = require('sqlite3').verbose;
const db = new sqlite3.Database('my_database.db');
it comes up with the error: Uncaught TypeError: Cannot read properties of undefined (reading '_handle').
node.js is in the correct version and I have got sqlite3 installed I even asked chatGBT for help and did everything it said to do still didn't work.
I need to be able to use SQL in this project.
const sqlite3 = require('sqlite3').verbose;
const db = new sqlite3.Database('my_database.db');
it comes up with the error: Uncaught TypeError: Cannot read properties of undefined (reading '_handle').
node.js is in the correct version and I have got sqlite3 installed I even asked chatGBT for help and did everything it said to do still didn't work.
I need to be able to use SQL in this project.