Closed khushmanvar closed 2 years ago
Getting the above error, even after doing all instructions correctly. Can anyone please help me solving this?
Hey there @khushmanvar!
This error means it couldn't fetch the data needed from Sanity to render the home page.
Are there any other consol errors associated with this that you can share?
Some other things to check:
Let me know if that makes sense! You're almost there ๐ค
Closing this for now @khushmanvar, but follow up here if you run into any other issues related to this ๐ค
I got the same error after following the directions. I cloned the repository with git clonee and followed the instructions in the ReadMe.md file in the root. Localhost:3333 and localhost:3000 are running, I don't see any errors. $ yarn dev yarn run v1.22.21 warning ..\package.json: License should be a valid SPDX license expression $ cross-env NODE_ENV=development next dev ready - started server on 0.0.0.0:3000, url: http://localhost:3000 info - Loaded env from C:\SourceControl\HULL.env.local event - compiled client and server successfully in 8.7s (1836 modules) wait - compiling / (client and server)... event - compiled client and server successfully in 2s (1937 modules)
$ yarn dev yarn run v1.22.21 warning ....\package.json: License should be a valid SPDX license expression $ sanity start
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ โ โ โ Update available 2.36.2 โ 3.30.0 โ โ Run yarn upgrade @sanity/cli to update โ โ โ โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
[WARN] The following package versions have not yet been marked as supported:
react (installed: 18.2.0, want: ^16.9 || ^17) react-dom (installed: 18.2.0, want: ^16.9 || ^17)
You may encounter bugs while using these versions.
To downgrade, run either:
yarn add "react@17.0.0" "react-dom@17.0.0"
or
npm install "react@17.0.0" "react-dom@17.0.0"
โ Checking configuration files...
โ Compiling...webpack built cb72540ebe37085a9011 in 16584ms
โ Compiling...
Content Studio successfully compiled! Go to http://localhost:3333
@enterpriseSoftware please see the comment above (quoted below as well). You need to begin filling out your content if you didn't import via the Sanity CLI. This is not an error, this is expected behavior when there is not page data to fetch for the home page.
This error means it couldn't fetch the data needed from Sanity to render the home page.
Are there any other consol errors associated with this that you can share?
Some other things to check:
- Make sure you've published all "settings" documents
- Make sure you've created a page with content on it
- Make sure you've set the home page reference to the page you created here: Settings > General > Displays (tab)
Let me know if that makes sense! You're almost there ๐ค