Giter Club home page Giter Club logo

Comments (6)

ndimatteo avatar ndimatteo commented on July 16, 2024 1

This is due to some legacy documents that are still present in the bundled sanity demo data. You can remove these documents with the Sanity CLI from your terminal. Simply run the following in your studio folder:

sanity documents delete homePage && sanity documents delete shopPage

I'll have this cleaned up in the next release this week ๐Ÿค˜

from hull.

justinjerrick avatar justinjerrick commented on July 16, 2024 1

@ndimatteo Thanks that worked ๐Ÿ‘

from hull.

justinjerrick avatar justinjerrick commented on July 16, 2024

@ndimatteo Thanks. I still seem to be getting an error after running that:

Error: Failed to delete document: the mutation(s) failed: Document "homePage" cannot be deleted as there are references to it from "errorPage" at Object.<anonymous> (~/Documents/GitHub/camp-final/studio/node_modules/@sanity/core/lib/commands/documents/deleteDocumentsCommand.js:55:15) at Generator.throw (<anonymous>) at asyncGeneratorStep (~/Documents/GitHub/camp-final/studio/node_modules/@sanity/core/lib/commands/documents/deleteDocumentsCommand.js:12:103) at _throw (~/Documents/GitHub/camp-final/studio/node_modules/@sanity/core/lib/commands/documents/deleteDocumentsCommand.js:14:291)

from hull.

ndimatteo avatar ndimatteo commented on July 16, 2024

@justinjerrick go ahead and delete that document first before running the original command I mentioned:

sanity documents delete errorPage

from hull.

GodwinEbikwo avatar GodwinEbikwo commented on July 16, 2024

Hi, I am still getting the exact problem. When I run the command on the cli, I get
'Document not found: homePage
Document not found: shopPage'

from hull.

ndimatteo avatar ndimatteo commented on July 16, 2024

@GodwinEbikwo not sure what you mean? The error that the original issue outlines is due to the presence of both of those documents...

If they don't exist, you should not be seeing an error like this.

Please elaborate on what error you are seeing and the steps you are taking to get there. Thanks!

from hull.

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.