Comments (2)
Hi @buccalon, The ReferenceError: document is not defined
error I believe is the ultimate source issue here. The depedency for OpenSeadragon expects the browser document
to exist and doesn't play well in a node environment. When Next is building its trying to render OpenSeadragon and then crashing...
There is a solution though, but it must be done through a dynamic import package in next/dynamic
- I suggest creating a component to the side that can operate outside of your Markdown pages.
components/IIIFViewer.jsx
and in that...
import dynamic from "next/dynamic";
const CloverIIIF = dynamic(() => import("@samvera/clover-iiif"), {
ssr: false,
});
const IIIFViewer = ({ id }) => {
return <CloverIIIF id={id} />;
};
export default IIIFViewer;
- Then in each of your markdown files...
import IIIFViewer from '../../components/IIIFViewer'
# Relatório dos trabalhos executados na Floresta Nacional da Tijuca de 1º de Janeiro a 31 de Dezembro de 1890, por Manuel Gomes Archer
<IIIFViewer id="https://iiif.tiju.ca/1891-relatorio-archer" />
## Contexto
...
Also, you may want to update Clover to latest npm i @samvera/clover-iiif@latest
to accomodate the new id
prop rather than manifestId
.
Let me know if that helps. Best - Mat
from clover-iiif.
@mathewjordan thanks for taking the time and updating the docs, it worked!
from clover-iiif.
Related Issues (20)
- With one video in an iFrame, Clover's canvas doesn't fill the container.
- Control buttons not shown when on full-screen
- Add next/previous Media controls to the ImageViewer
- Configuration Improvements
- Build error: 'Document' is not exported from 'flexsearch' HOT 3
- HLS should render if the mime-type is an application/vnd.apple.mpegurl, not just if the file ends with .m3u8
- Add support for Ranges to build a table of contents HOT 1
- Clover doesn't always toggle between canvases on thumbnail click
- Tiled image not loading correctly
- Audio visualizer appears under accompanyingCanvas
- Audio visualizer disappear on page change
- Download link opens a vault:// address instead of referenced resource.
- Previous tab and next tab components mounted when switching tabs
- Clover viewer overtakes body on smaller viewports in some cases
- Annotation tab/overlays should not be on by default HOT 1
- CanvasHeight set to 100% seems to collapse clover-viewer-content when below 767px window width
- Zoom view does not display HOT 1
- Collection of InformationPanel issues
- Support contentState motivations for Annotations
- Better Detection for Thumbnail Sizes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clover-iiif.