-
Notifications
You must be signed in to change notification settings - Fork 113
Description
!!! This repo works fine if you use it from the Netlify dashboard as a template for your project.
Tried to run this project locally.
npm install in both folders - root and studio
nrm run dev
[WARN] [vite] Failed to resolve dependency: react-is, present in client 'optimizeDeps.include'
[WARN] [vite] Failed to resolve dependency: styled-components, present in client 'optimizeDeps.include'
and React error.
I need to install npm install react react-is styled-components
After that
Local http://localhost:3000/
[WARN] [router] A `getStaticPaths()` route pattern was matched, but no matching static path was found for requested path `/`.
[404] / 22ms
I got 404 error.
cd studio npm run dev
sanity dashboard starts, but:
The sanity package is moving to v4 on July 15 and will require Node.js 20+.
stackbit dev
TypeError: Cannot destructure property 'cliConfig' of 'node_worker_threads.workerData' as it is null
[cms-sanity] Error fetching Sanity schema
This repo has problems with the config and package versions.
Astro requires some changes; in packages and routing, Sanity works, but needs some version updates.
Stackbit does not work.
P.S.: Also, please check the official tutorial: Use Sanity with Visual Editor.
It does not work because it also has a lot of problems with package versions.
Tried with simple Astro project + Sanity + stackbit.config.ts
Deploy works fine, but Preview Server:
TypeError: Cannot destructure property 'cliConfig' of 'node_worker_threads.workerData' as it is null
Plugin "@netlify/plugin-visual-editor" internal error
The same error as on the local repo