You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Has anyone else had problems getting ipfs-iiif-db to work with Browserify ?
If I add the line
const IIIFDB = require('ipfs-iiif-db');
To either browser.js or inside one of my modules, then nothing from that point on gets loaded, even though it appears to be present in the browserified bundle as do the .
Its a weird error, clearly related to this line, though neither browserify, nor firefox complain about it at loading. it just can't find the enclosing module, nor anything after it during execution.
If I comment out this line then it gets loaded fine (but of course fails when it cant find IIIFDB).
I've tried on current Firefox and Chrome, so doesn't appear to be a browser dependency.
The code works ok when running in node itself.
FOr example ... if browser.html looks like:
window.Dweb = require('./Dweb'); //TODO move inner calls in Dweb to save locally
window.sodium = require("libsodium-wrappers"); // Needed for cryptotest
window.ZZ1 = "Hello there";
window.IIFDB = require('ipfs-iiif-db');
window.TransportIPFS = require('./TransportIPFS');
window.ZZ3 = "Goodbye";
Then neither IIFDB, TransportIPFS nor ZZ3 are defined, but ZZ1 is.
I've updated node, npm, browserify and ipfs-iiif-db to current versions.
Any ideas ?
The text was updated successfully, but these errors were encountered:
Has anyone else had problems getting ipfs-iiif-db to work with Browserify ?
If I add the line
const IIIFDB = require('ipfs-iiif-db');
To either browser.js or inside one of my modules, then nothing from that point on gets loaded, even though it appears to be present in the browserified bundle as do the .
Its a weird error, clearly related to this line, though neither browserify, nor firefox complain about it at loading. it just can't find the enclosing module, nor anything after it during execution.
If I comment out this line then it gets loaded fine (but of course fails when it cant find IIIFDB).
I've tried on current Firefox and Chrome, so doesn't appear to be a browser dependency.
The code works ok when running in node itself.
FOr example ... if browser.html looks like:
window.Dweb = require('./Dweb'); //TODO move inner calls in Dweb to save locally
window.sodium = require("libsodium-wrappers"); // Needed for cryptotest
window.ZZ1 = "Hello there";
window.IIFDB = require('ipfs-iiif-db');
window.TransportIPFS = require('./TransportIPFS');
window.ZZ3 = "Goodbye";
Then neither IIFDB, TransportIPFS nor ZZ3 are defined, but ZZ1 is.
I've updated node, npm, browserify and ipfs-iiif-db to current versions.
Any ideas ?
The text was updated successfully, but these errors were encountered: