Giter Club home page Giter Club logo

Comments (8)

pierreburgy avatar pierreburgy commented on July 21, 2024 1

Fixed and published on npm 🚀

https://github.com/strapi/gatsby-source-strapi/releases

from strapi-examples.

chence avatar chence commented on July 21, 2024

same error +1

from strapi-examples.

robhowell avatar robhowell commented on July 21, 2024

me too +1

from strapi-examples.

nom4da avatar nom4da commented on July 21, 2024

same here +1

from strapi-examples.

bitconym avatar bitconym commented on July 21, 2024

same +1

from strapi-examples.

ymek avatar ymek commented on July 21, 2024

While this clearly isn't a code fix, the following will get people going (if you're here from the Gatsby blog):

Connect to MongoDB's mongo-shell:

mongo

After you're connected, insert the missing data.

use strapi
var myObjectId = db['users-permissions_user'].findOne()._id
db['users-permissions_user'].findOneAndUpdate({ _id: { $eq: myObjectId } }, { $set: { id: myObjectId.valueOf() } })

Interestingly enough, this specific issue is not present when creating a user in the Strapi control panel.

from strapi-examples.

pierreburgy avatar pierreburgy commented on July 21, 2024

Good catch! I submitted a PR for the gatsby-source-strapi plugin: gatsby-uc/gatsby-source-strapi#4.

As soon as it is published on npm, I will update this project.

from strapi-examples.

entrptaher avatar entrptaher commented on July 21, 2024

@pierreburgy everything is nice and dandy, except this isn't updated yet and I just wasted an hour trying to understand why I was getting error when I used the example repo. I thought it was updated even on the example repo. :'(

https://github.com/strapi/strapi-examples/blob/master/gatsby-strapi-tutorial/blog/package.json#L10

from strapi-examples.

Related Issues (20)

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.