Closed
Description
Here is the error when I run vite build
error during build:
[vite-plugin-pwa:build] [plugin vite-plugin-pwa:build] node_modules/sql.js/dist/sql-wasm.js: There was an error during the build:
Failed to resolve entry for package "fs". The package may have incorrect main/module/exports specified in its package.json.
At the top of my file where I try to init the db I import as:
import initSqlJs from "sql.js";
I have removed the vite pwa plugin and get the error:
error during build:
[commonjs--resolver] Failed to resolve entry for package "fs". The package may have incorrect main/module/exports specified in its package.json.