Groups
Groups
Sign in
Groups
Groups
Tinode General
Conversations
Labels
About
Send feedback
Help
About the "DBCache" class
15 views
Skip to first unread message
Yang Lei
unread,
Aug 7, 2025, 1:48:00 AM
Aug 7
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Tinode General
The following import statement is in the Tinode SDK source file (
https://github.com/tinode/tinode-js/blob/master/src/tinode.js
)
import DBCache from './db.js';
but there is no DBCache class at all in the db.js (
https://github.com/tinode/tinode-js/blob/master/src/db.js
)
is it mistake?
Gene
unread,
Aug 7, 2025, 3:34:50 AM
Aug 7
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Tinode General
Yes, you don't understand the semantics of JS import statement. Please read the manual
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import
Yang Lei
unread,
Aug 8, 2025, 1:43:19 AM
Aug 8
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Tinode General
Thank you a lot for the patient guidance.
I would argue it is really not a "good part" of Javascript or any other languages though.
import * as newname from , or import thesame from , would be a lot of easier to understand.
Reply all
Reply to author
Forward
0 new messages