tmotagam / sqlite-electron

module for electron to use sqlite3 databases
GNU General Public License v3.0
74 stars 11 forks source link

Cannot assign to 'dbPath' because it is a read-only property. #6

Closed Tulipesz closed 1 year ago

Tulipesz commented 1 year ago

Hi! First of all thanks for the good work with the library.

I'm trying to use the library but this error is happening.

image

image

I think it may be because of the import standard (ES6). Do you have any idea?

image

Thank you for any help.

tmotagam commented 1 year ago

Hello @Tulipesz, Thanks for reporting the bug I will fix it in the next update for now please use this snippet to do your work.

import sqlite from "sqlite-electron";

(sqlite.dbPath as any) = "test.db"