Azure / static-web-apps

Azure Static Web Apps. For bugs and feature requests, please create an issue in this repo. For community discussions, latest updates, kindly refer to the Discussions Tab. To know what's new in Static Web Apps, visit https://aka.ms/swa/ThisMonth
https://aka.ms/swa
MIT License
325 stars 56 forks source link

Unable to deploy an angular app. #1227

Open Gangadhar1995 opened 1 year ago

Gangadhar1995 commented 1 year ago

npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: @ng-bootstrap/ng-bootstrap@12.1.2 npm ERR! Found: @angular/common@14.3.0 npm ERR! node_modules/@angular/common npm ERR! @angular/common@"^14.3.0" from the root project npm ERR! peer @angular/common@"14.3.0" from @angular/forms@14.3.0 npm ERR! node_modules/@angular/forms npm ERR! @angular/forms@"^14.3.0" from the root project npm ERR! 8 more (@angular/platform-browser, ...) npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer @angular/common@"^13.0.0" from @ng-bootstrap/ng-bootstrap@12.1.2 npm ERR! node_modules/@ng-bootstrap/ng-bootstrap npm ERR! @ng-bootstrap/ng-bootstrap@"12.1.2" from the root project npm ERR! npm ERR! Conflicting peer dependency: @angular/common@13.4.0 npm ERR! node_modules/@angular/common npm ERR! peer @angular/common@"^13.0.0" from @ng-bootstrap/ng-bootstrap@12.1.2 npm ERR! node_modules/@ng-bootstrap/ng-bootstrap npm ERR! @ng-bootstrap/ng-bootstrap@"12.1.2" 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 /github/home/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in: npm ERR! /github/home/.npm/_logs/2023-07-21T03_20_02_531Z-debug-0.log

---End of Oryx build logs--- Oryx has failed to build the solution.

getting this error on git push. pls help

mishapos commented 1 year ago

Hi, are you able to reproduce this locally? If you have a custom command you use to build your assets, can you please try specifying it via the app_build_command input to the GitHub Action? (docs link