[3] Amplify Error _ File project: data should NOT have additional properties: 'frontend-ios'

Soly; 독특하게·2021년 6월 22일
0

Lily의 인턴일지

목록 보기
4/6
post-thumbnail
  • 상황)

amplify를 수정하고 싶어서 amplify init 과 amplify status를 했는데 다음과 같은 에러가 나왔다.

File project: data should NOT have additional properties: 'frontend-ios'
JSONValidationError: File project: data should NOT have additional properties: 'frontend-ios'
  • 해결)

⇒ cli.json파일에서 frontend-ios,auth,codegen을 삭제

{
  "features": {
    "graphqltransformer": {
      "addmissingownerfields": true,
      "validatetypenamereservedwords": true,
      "useexperimentalpipelinedtransformer": false,
      "enableiterativegsiupdates": false
    },
    "frontend-ios": { // 여기부터 삭제
      "enablexcodeintegration": true
    },
    "auth": {
      "enablecaseinsensitivity": true
    },
    "codegen": {
      "useappsyncmodelgenplugin": true
    }
  }
}

⇒ 삭제 후 amplify init 실행

at async Object.run (/usr/local/lib/node_modules/@aws-amplify/cli/lib/index.js:78:9)
~/Desktop/work/Fine-Admin feature/data *2 ❯ amplify init                                                                                 16:44:36
Note: It is recommended to run this command from the root of your app directory
? Do you want to use an existing environment? No
? Enter a name for the environment dev
Using default provider  awscloudformation

For more information on AWS Profiles, see:
https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html

? Do you want to use an AWS profile? No
? accessKeyId: 입력
? secretAccessKey:  입력
? region:  ap-northeast12
✔ Initialized provider successfully.
Initialized your environment successfully.

Your project has been successfully initialized and connected to the cloud!

Some next steps:
"amplify status"
...

⇒ amplify status

profile
협업을 즐겨하는 목표지향적인, Front-End 개발자입니다.

0개의 댓글