Const
The real client, reached by a dynamic import: a static import { Client } from 'pg' bundles, but vite fails every spec reaching this module (Cannot use import statement outside a module on pg's CommonJS entry), and park-drive.ts imports this file.
import { Client } from 'pg'
Cannot use import statement outside a module
pg
park-drive.ts
The real client, reached by a dynamic import: a static
import { Client } from 'pg'bundles, but vite fails every spec reaching this module (Cannot use import statement outside a moduleonpg's CommonJS entry), andpark-drive.tsimports this file.