Closed nichoth closed 8 months ago
Tried the example in README —
const { BrowserLevel } = require('browser-level') // Create a database called 'example' const db = new BrowserLevel('example', { valueEncoding: 'json' })
Got an error:
Uncaught TypeError: Class extends value undefined is not a constructor or null
This is using vite to bundle some code with ESM import statements.
vite
import
@nichoth try installing the userland events module from NPM, possibly along with @types/events.
events
@types/events
Thanks; I can confirm installing events has fixed.
Tried the example in README —
Got an error:
This is using
vite
to bundle some code with ESMimport
statements.