Closed viconx98 closed 11 months ago
Hi, the build config is a bit brittle... (one of the reasons why I'm working on Annotorious 3, which will be a full rewrite)
But, yes, OpenSeadragon is not automatically pulled in by annotorious-openseadragon. Installing it as a direct dependency to your project is the correct way to go.
Thanks for the quick response. I am looking forward to v3!
Going to close this issue since it answers my question. :)
I am fairly new to using
annotorious
andannotorious-openseadragon
so apologies if this is a naïve question.Question: I have a React project with Vite as build tool, If I want to use
annotorious-openseadragon
with it do I need to install theopenseadragon
package separately?The Getting started guide doesn't mention anything about installing
openseadragon
explicitly and it seems to work as expected for development build.But when I try to deploy a production build on Render I keep getting the following error.
Looking at the logs it seems it can't find the
openseadragon
package. I am not entirely familiar with Vite's build process but it may be becauseopenseadragon
is listed as peerDependancy ofannotorious-openseadragon
Adding
openseadragon
as a direct dependency (npm i openseadragon
) to my project makes this error go away so I am slightly confused as to what is the correct approach here.I am happy to share more details if needed. Thanks!