mirador-annotations icon indicating copy to clipboard operation
mirador-annotations copied to clipboard

Cannot build correctly / run

Open faebser opened this issue 2 years ago • 1 comments

Hi,

I'm trying to build this project so that I can extend the user interface with some buttons and write an adapter for Omeka S CMS. Sadly trying to build it with npm fails totally, with yarn i had some success. I'm running node v16.20.2 and export NODE_OPTIONS=--openssl-legacy-provider. Running yarn start gives the errors visible in the gist below.

Could you maybe give me some pointers on how to build this project? Thank you

https://gist.github.com/faebser/11e27c2ca01459a6a2f357880ec13c80

faebser avatar Oct 04 '23 10:10 faebser

We were previously building Mirador + mirador-annotations with Yarn and node 14 and webpack (v5), and recently upgraded to npm and node 20 and Vite. We are also using "react": "^17.0.2" and "react-dom": "^17.0.2" requirements. We are using ARG NODE_OPTIONS=--openssl-legacy-provider as well as npm install --legacy-peer-deps for now. I don't think we have any other abnormal build steps to get this to work. I don't have anything reproducible I can readily share as this is embedded in a much larger project, but I'd try adding the --legacy-peer-deps flag and see if that helps as a start.

ColeDCrawford avatar Nov 29 '23 16:11 ColeDCrawford