blinkdb-js / blinkdb

🗃️ An in-memory JS database optimized for large scale storage on the frontend.
https://blinkdb.io
MIT License
119 stars 10 forks source link

Error with hyperid #38

Open ericvida opened 10 months ago

ericvida commented 10 months ago

code to reproduce error

Code to Reproduce Error

in js vite project

import { createDB } from "blinkdb";
const db = createDB();
const wordsTable = createTable(db, "words")();

CleanShot 2024-01-11 at 20 45 01 CleanShot 2024-01-11 at 20 47 05

Error

hyperid.js:7  Uncaught TypeError: Cannot read properties of undefined (reading 'from')
    at node_modules/hyperid/hyperid.js (hyperid.js:7:30)
    at __require (chunk-NIBQISYW.js?v=a227823d:9:50)
    at node_modules/blinkdb/dist/core/uuid.js (uuid.js:7:35)
    at __require (chunk-NIBQISYW.js?v=a227823d:9:50)
    at node_modules/blinkdb/dist/core/index.js (index.js:54:14)
    at __require (chunk-NIBQISYW.js?v=a227823d:9:50)
    at node_modules/blinkdb/dist/index.js (index.js:17:14)
    at __require (chunk-NIBQISYW.js?v=a227823d:9:50)
    at index.js:20:47