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)

未关闭
#9,653 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug good first issue ops-errors p2 platform
主要语言
TypeScript
星标
2.9k
派生
825
平均合并
11 天 23 小时
30 天内合并 PR
2

描述

### 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,
Screenshot 2022-01-30 at 3 33 56 PM

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_

贡献指南

打开贡献指南

调研方向

在报告中所述的 Mac 设置上,使用 `amplify init`、带联合身份的默认身份验证、storage、API 和 `amplify add notifications` 重现该问题。从报告中显示的 CLI 路径解析错误开始;完成的标准是,该故障能解释项目路径为何无法解析,并提供明确的下一步,而不是当前的错误。

由索引模型根据 Issue 内容生成。

评估

技术栈
aws, typescript
领域
cli
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
28/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。