Question about indexeddb declaration
See original GitHub issueHi @fergiemcdowall ! I’m trying to webpack search-index to use in Adobe XD plugin environment over at designing-with-search-data. I’m doing mostly what worked for the browser, using memdown, but get an error that indexeddb is not defined.
Here’s the error message in XD (from Developer console) when trying to load the plugin
Loading plugin /Users/eklem/Library/Application Support/Adobe/Adobe XD/develop/designing-with-search-data
Plugin Error: Error loading plugin /Users/eklem/Library/Application Support/Adobe/Adobe XD/develop/designing-with-search-data
Plugin ReferenceError: indexedDB is not defined
at Object.<anonymous> (/Users/eklem/Library/Application Support/Adobe/Adobe XD/develop/designing-with-search-data/XD-webpacked.js:8630:39)
at Object../node_modules/level-js/index.js (/Users/eklem/Library/Application Support/Adobe/Adobe XD/develop/designing-with-search-data/XD-webpacked.js:8814:30)
at __webpack_require__ (/Users/eklem/Library/Application Support/Adobe/Adobe XD/develop/designing-with-search-data/XD-webpacked.js:20:30)
at Object../node_modules/level/browser.js (/Users/eklem/Library/Application Support/Adobe/Adobe XD/develop/designing-with-search-data/XD-webpacked.js:9097:111)
at __webpack_require__ (/Users/eklem/Library/Application Support/Adobe/Adobe XD/develop/designing-with-search-data/XD-webpacked.js:20:30)
at Module../node_modules/fergies-inverted-index/dist/fergies-inverted-index.esm.js (/Users/eklem/Library/Application Support/Adobe/Adobe XD/develop/designing-with-search-data/XD-webpacked.js:5775:63)
at __webpack_require__ (/Users/eklem/Library/Application Support/Adobe/Adobe XD/develop/designing-with-search-data/XD-webpacked.js:20:30)
at Module../XD-webpackable.js (/Users/eklem/Library/Application Support/Adobe/Adobe XD/develop/designing-with-search-data/XD-webpacked.js:4510:80)
at __webpack_require__ (/Users/eklem/Library/Application Support/Adobe/Adobe XD/develop/designing-with-search-data/XD-webpacked.js:20:30)
at /Users/eklem/Library/Application Support/Adobe/Adobe XD/develop/designing-with-search-data/XD-webpacked.js:84:18
at convertPluginErrorToString (plugins/PluginErrorUtil.js:1:198)
at internalFormatPluginError (plugins/PluginErrorUtil.js:1:1065)
at internalReportPluginError (plugins/PluginErrorUtil.js:1:1172)
at Object.reportPluginError (plugins/PluginErrorUtil.js:1:1604)
at loadPlugin (plugins/PluginLoader.js:1:673)
at plugins/PluginLoader.js:1:6211
at Array.forEach (<anonymous>)
at reloadPlugins (plugins/PluginLoader.js:1:6191)
at Artwork.history.waitForCurrentEditBatch.then (plugins/PluginLoader.js:1:6850)
My question: Is there some code in search-index (or fii I guess) that references indexeddb, or is based upon indexeddb already being referenced/declared?
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Using IndexedDB - Web APIs - MDN Web Docs
IndexedDB is a way for you to persistently store data inside a user's browser. Because it lets you create web applications with rich...
Read more >Working with IndexedDB - web.dev
A guide to the basics of IndexedDB. ... you wrap the createObjectStore() method in an if statement that checks if the object store...
Read more >Newest 'indexeddb' Questions - Stack Overflow
I'm playing with IndexedDB. My application has 5 DBs: Each DB contains from 1000 to 1000000 items in it. When the application starts...
Read more >Introduction to IndexedDB: The In-Browser Database
Perhaps the most important question when developing applications for the Web is: “Will the browsers support what I'm trying to do?” Although ...
Read more >Why IndexedDB is slow and what to use instead - RxDB
So you have a JavaScript web application that needs to store data at the client side, either to make it offline usable, just...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The tests currently run a webpack bundle like so
npm run empty-sandbox && webpack && cat test/sandbox/bundle.js | tape-run
. Its been a while since I took a good look at this, but there is some webpack config that is needed to make it work in the browser (https://github.com/fergiemcdowall/search-index/blob/master/webpack.config.babel.js).When I get a couple of hours I will update the doc with a HOWTO for using with webpack and rollup
@eklem it is a thing of beauty! 😃