TaitoUnited / full-stack-template

Template for cloud-native applications and microservices running as containers/functions on Kubernetes, Docker Compose, or cloud. You can choose the stack during project creation.
https://taitounited.github.io/taito-cli/templates
MIT License
35 stars 8 forks source link

www service cannot be installed due to conflicting styled-components depency #131

Open pakettiale opened 2 years ago

pakettiale commented 2 years ago

After cloning current repo and running taito develop

 => ERROR [full-stack-template_full-stack-template-www 9/9] RUN npm run install-site              29.1s
------
 > [full-stack-template_full-stack-template-www 9/9] RUN npm run install-site:
#0 1.130 
#0 1.130 > install-site
#0 1.130 > if [ -f ./site/package-lock.json ]; then cd site && mkdir -p node_modules && npm ci; elif [ -f ./site/package.json ]; then cd site && mkdir -p node_modules && npm install; fi
#0 1.130 
#0 28.46 npm ERR! code ERESOLVE
#0 28.46 npm ERR! ERESOLVE unable to resolve dependency tree
#0 28.46 npm ERR! 
#0 28.46 npm ERR! While resolving: gatsby-starter-default@1.0.0
#0 28.46 npm ERR! Found: styled-components@5.3.5
#0 28.46 npm ERR! node_modules/styled-components
#0 28.46 npm ERR!   styled-components@"^5.2.1" from the root project
#0 28.46 npm ERR! 
#0 28.46 npm ERR! Could not resolve dependency:
#0 28.46 npm ERR! peer styled-components@"^4.0.0-beta.3" from unstyled@0.2.2
#0 28.46 npm ERR! node_modules/unstyled
#0 28.46 npm ERR!   unstyled@"^0.2.2" from the root project
#0 28.46 npm ERR! 
#0 28.46 npm ERR! Fix the upstream dependency conflict, or retry
#0 28.46 npm ERR! this command with --force, or --legacy-peer-deps
#0 28.46 npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
#0 28.46 npm ERR! 
#0 28.46 npm ERR! See /home/node/.npm/eresolve-report.txt for a full report.
#0 28.46 
#0 28.46 npm ERR! A complete log of this run can be found in:
#0 28.46 npm ERR!     /home/node/.npm/_logs/2022-05-04T09_28_10_520Z-debug-0.log
------
failed to solve: executor failed running [/bin/sh -c npm run install-site]: exit code: 1
pakettiale commented 2 years ago

Removing the unstyled dependency causes the build to crash due to some C++ compilation error?