aws-amplify / aws-amplify/amplify-cli
improve error messaging when CLI is unable to resolve project path (e.g. after moving the project to a different directory)
- Lingua principale
- TypeScript
- Stelle
- 2.9k
- Fork
- 825
- Merge medio
- 11g 23h
- PR unite (30g)
- 2
Descrizione
### Before opening, please confirm:
- [X] I have installed the latest version of the Amplify CLI (see above), and confirmed that the issue still persists.
- [X] I have [searched for duplicate or closed issues](https://github.com/aws-amplify/amplify-cli/issues?q=is%3Aissue+).
- [X] I have read the guide for [submitting bug reports](https://github.com/aws-amplify/amplify-cli/blob/master/CONTRIBUTING.md#bug-reports).
- [X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
### How did you install the Amplify CLI?
_No response_
### If applicable, what version of Node.js are you using?
_No response_
### Amplify CLI Version
7.6.13
### What operating system are you using?
Mac
### Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
No
### Amplify Categories
notifications
### Amplify Commands
add
### Describe the bug
When I tried adding notifications using `amplify add notifications` I started seeing this error below,

I have added a default configuration for **auth** with federal identities.
### Expected behavior
I was expected to enter my FCM cloud messaging credential input.
### Reproduction steps
1. Create an app using amplify init
2. Add auth with the default configuration and federal identities
3. add storage
4. add API
5. Add notification,
Started seeing this error.
### GraphQL schema(s)
```graphql
# Put schemas below this line
```
### Log output
```
# Put your logs below this line
```
### Additional information
_No response_
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Reproduce the problem with `amplify init`, default auth with federated identities, storage, API, and `amplify add notifications` on the reported Mac setup. Start from the CLI path-resolution error shown in the report; done means the failure explains why the project path cannot be resolved and gives a clear next step instead of the current error.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- aws, typescript
- Ambito
- cli
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 28/100