amborle / featmap

The simple and open source user story mapping tool.
Other
518 stars 83 forks source link

npm error while building from source and running with docker-compose #46

Closed athulprathap closed 3 years ago

athulprathap commented 3 years ago

Build failed while building from source and running with docker-compose. Logs below

Removing intermediate container 2d29cfe6bb67 ---> 4522e38d4244 Step 5/12 : COPY ./webapp/package.json webapp/package.json ---> 86068e639953 Step 6/12 : RUN cd ./webapp && npm install ---> Running in ea2648237725 npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: featmap-client@0.1.0 npm ERR! Found: history@5.0.0 npm ERR! node_modules/history npm ERR! history@"^5.0.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer history@"^4.7.2" from connected-react-router@6.9.1 npm ERR! node_modules/connected-react-router npm ERR! connected-react-router@"^6.9.1" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force, or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. npm ERR! npm ERR! See /root/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2021-07-02T11_41_14_065Z-debug.log ERROR: Service 'featmap' failed to build: The command '/bin/sh -c cd ./webapp && npm install' returned a non-zero code: 1

lwjason commented 3 years ago

Encountered the same issue

Druid33 commented 3 years ago

Same problem here....and files /root/.npm/eresolve-report.txt and /root/.npm/_logs/2021-07-02T11_41_14_065Z-debug.log doesnt exists

robertovillarejo commented 3 years ago

En mi caso instalé algunas dependencias faltantes:

cd webapp
npm i history@^4.7.2 react-timeago@^6.2.1 && npm i -D @babel/core@^7.14.6

y ya logré crear la imagen de Docker 👍

Druid33 commented 3 years ago

Sry, but changes in commit https://github.com/amborle/featmap/commit/18241e2cb6bdfdb24082c3cd40b2d817b6344c1f has no effect to this issue.

amborle commented 3 years ago

Works fine on my side, perhaps it has to do with npm version?

Den fre 23 juli 2021 10:37Peter Skultety @.***> skrev:

Sry, but changes in commit 18241e2 https://github.com/amborle/featmap/commit/18241e2cb6bdfdb24082c3cd40b2d817b6344c1f has no effect to this issue.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/amborle/featmap/issues/46#issuecomment-885488942, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABHGGJMTSEXOPO4V5AGMWJ3TZES5HANCNFSM47WSC2YQ .

Druid33 commented 3 years ago

Npm is part of docker image. In build log i see version 7.17 is installed and used.

Madjarx commented 11 months ago

encountering somewhat similar errors, idk if you guys are still up to the discussion, but yeah i can confirm that history needs to be at 4.7.2 version for sure. I got some other issues with typescript on my end though, i might open a PR to resolve these issues cus theres a lot of problems emerging when trying to self host this project

Edit: yeah its a shitfest trying to get it running in 2023