Lokendra Choudhary
Lokendra Choudhary

Reputation: 479

Amplify Graphql Error: "Trying to redefine existing 'something' type" and tried to use an undeclared directive 'aws_subscribe'

I am getting following error as shown in image snapshot below. 1st Error: Trying to redefine existing 'something' type. But i am only defining it once and i have made no changes to the file. This is autogenerated file from amplify add API command. 2nd Error: tried to use undeclared directive 'aws_subscribe'

I cannot understand what i am doing wrong.enter image description here

Upvotes: 3

Views: 1162

Answers (1)

Lokendra Choudhary
Lokendra Choudhary

Reputation: 479

Problem not exactly solved. But most probably right steps were not followed while adding api. Did again and everything worked fine this time.

Upvotes: 1

Related Questions