yathit / ydn-db

Javascript database module for Indexeddb, Web SQL and localStorage storage mechanisms supporting version migration, advanced query, SQL and transaction.
Apache License 2.0
503 stars 41 forks source link

require will undefined #124

Open yyman001 opened 6 years ago

yyman001 commented 6 years ago

i use npm install ydn,

var ydn = ydn || {};
ydn.db = require('ydn.db');
let db = null
console.log('ydn:',ydn)
outprint Error in mounted hook: "TypeError: ydn.db.Storage is not a constructor"