Closed sarankup closed 5 years ago
Hi @sarankup, did you tried to use import * as StorageDB from 'storagedb2'
to import dependency?
Hi, I found a ways to solve this issue.
Instead of the below
new StorageDB({
We have to use as follows
new window.StorageDB({
Okay, thanks for your comment
Hi, I have been using this for my web projects. Recently, I have started one of my web application using React web framework. As I try to use the storagedb2, I'm getting the following error.
"storagedb2__WEBPACK_IMPORTED_MODULE_1___default.a is not a constructor"
Here is the detailed error.
Here is my React component
Please advise how to solve this issue.