Giter Club home page Giter Club logo

Comments (4)

rojagit avatar rojagit commented on May 25, 2024

For some reason the Ctrl+Shift+F didnt work the last time, but grepping it I found this:

ec2-user:~/environment/unicorn-loyalty $ grep -l 'AppSyncEvent' . -r
./awsmobilejs/backend/appsync/dataSources.json
./awsmobilejs/backend/appsync/resolvers.json
./awsmobilejs/#current-backend-info/appsync/dataSources.json
./awsmobilejs/#current-backend-info/appsync/resolvers.json

from aws-serverless-appsync-loyalty.

rojagit avatar rojagit commented on May 25, 2024

I did this step but it (Old tables) keeps coming back. I will try removing #currentbackend.

"Go to the folder awsmobilejs/backend/appsync and delete the file resolvers.json and the folder resolver-mappings.

Now go to the folder appsync in the root of the application directory and copy the file resolvers.json and the folder resolver-mappings to the previous folder awsmobilejs/backend/appsync, replacing the deleted files."

There are so many nested appsync folders I wish there was a better naming standard.

from aws-serverless-appsync-loyalty.

rojagit avatar rojagit commented on May 25, 2024

Removed the # folder, and it regen'd correctly

For some reason datasources.json was still having the old stuff, copied from old app dir, made no diff.
I also did npm install - no errors
Grep & Find All have no matches for the old tables any more but still errors out as above whether on pull or push.

Push also gives this error: appsync update failed
TypeError: Cannot read property 'dataSources' of undefined
at Object.diff (/home/ec2-user/.nvm/versions/node/v8.11.4/lib/node_modules/awsmobile-cli/lib/backend-operations/appsync-operations/helpers/helper-dataSources.js:41:81)

from aws-serverless-appsync-loyalty.

rojagit avatar rojagit commented on May 25, 2024

Re-did it and it was fine this time.

from aws-serverless-appsync-loyalty.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.