🔮 Sanity Create is here. Writing is reinvented. Try now, no developer setup

Issue with running projects locally on Windows after upgrading to the latest version.

5 replies
Last updated: Sep 13, 2021
Hey! Can anybody help me with this?Since upgrading to the latest version, I cannot run my projects locally on Windows (but it's working on my MacBook). I'll add the stack trace in the thread.
Sep 13, 2021, 1:08 PM
yarn run v1.22.5
$ sanity start
√ Checking configuration files...
/ Compiling...webpack built 4848a0dc5c4ab41e11c2 in 16412ms
√ Compiling...
Failed to compile.

Error in ./node_modules/@sanity/base/lib/_exports/initial-value-templates.js
Module not found: Error: Can't resolve '@sanity/initial-value-templates' in 'C:\projects\seeuferweg-studio\node_modules\@sanity\base\lib\_exports'
 @ ./node_modules/@sanity/base/lib/_exports/initial-value-templates.js 7:29-71
 @ ./node_modules/@sanity/base/initial-value-templates.js
 @ ./node_modules/@sanity/default-layout/lib/util/getNewDocumentModalActions.js
 @ ./node_modules/@sanity/default-layout/lib/DefaultLayout.js
 @ ./node_modules/@sanity/default-layout/lib/Root.js (part:@sanity/base/root)
 @ ./node_modules/@sanity/base/lib/components/SanityRoot.js (part:@sanity/base/sanity-root)
 @ ./node_modules/@sanity/server/lib/browser/entry-dev.js
 @ multi ./node_modules/@sanity/server/lib/browser/entry-dev.js

Error in ./node_modules/@sanity/base/lib/datastores/grants/highlevel.js
Module not found: Error: Can't resolve '@sanity/initial-value-templates' in 'C:\projects\seeuferweg-studio\node_modules\@sanity\base\lib\datastores\grants'
 @ ./node_modules/@sanity/base/lib/datastores/grants/highlevel.js 14:29-71
 @ ./node_modules/@sanity/base/lib/datastores/grants/hooks.js
 @ ./node_modules/@sanity/base/lib/__legacy/@sanity/components/previews/CreateDocumentPreview.js (part:@sanity/components/previews/create-document)
 @ ./node_modules/@sanity/base/lib/__legacy/@sanity/components/lists/CreateDocument.js (part:@sanity/components/lists/create-document)
 @ ./node_modules/@sanity/default-layout/lib/actionModal/ActionModal.js
 @ ./node_modules/@sanity/default-layout/lib/DefaultLayout.js
 @ ./node_modules/@sanity/default-layout/lib/Root.js (part:@sanity/base/root)
 @ ./node_modules/@sanity/base/lib/components/SanityRoot.js (part:@sanity/base/sanity-root)
 @ ./node_modules/@sanity/server/lib/browser/entry-dev.js
 @ multi ./node_modules/@sanity/server/lib/browser/entry-dev.js

Error in ./node_modules/@sanity/form-builder/lib/inputs/PortableText/Toolbar/Toolbar.js
Module not found: Error: Can't resolve '@sanity/initial-value-templates' in 'C:\projects\seeuferweg-studio\node_modules\@sanity\form-builder\lib\inputs\PortableText\Toolbar'
 @ ./node_modules/@sanity/form-builder/lib/inputs/PortableText/Toolbar/Toolbar.js 16:29-71
 @ ./node_modules/@sanity/form-builder/lib/inputs/PortableText/Editor.js
 @ ./node_modules/@sanity/form-builder/lib/inputs/PortableText/Input.js
 @ ./node_modules/@sanity/form-builder/lib/inputs/PortableText/PortableTextInput.js
 @ ./node_modules/@sanity/form-builder/lib/sanity/legacyPartImplementations/form-builder.js (part:@sanity/form-builder)
 @ ./node_modules/@sanity/desk-tool/lib/components/BrokenReferences.js
 @ ./node_modules/@sanity/desk-tool/lib/utils/withInitialValue.js
 @ ./node_modules/@sanity/desk-tool/lib/panes/documentPane/documentPaneProvider.js
 @ ./node_modules/@sanity/desk-tool/lib/panes/documentPane/index.js
 @ ./node_modules/@sanity/desk-tool/lib/panes/DeskToolPane.js
 @ ./node_modules/@sanity/desk-tool/lib/panes/index.js
 @ ./node_modules/@sanity/desk-tool/lib/tool/DeskToolPanes.js
 @ ./node_modules/@sanity/desk-tool/lib/tool/DeskTool.js
 @ ./node_modules/@sanity/desk-tool/lib/tool/index.js
 @ ./node_modules/@sanity/vision/lib/VisionTool.js (all:part:@sanity/base/tool)
 @ ./node_modules/@sanity/default-layout/lib/router.js
 @ ./node_modules/@sanity/default-layout/lib/Root.js (part:@sanity/base/root)
 @ ./node_modules/@sanity/base/lib/components/SanityRoot.js (part:@sanity/base/sanity-root)
 @ ./node_modules/@sanity/server/lib/browser/entry-dev.js
 @ multi ./node_modules/@sanity/server/lib/browser/entry-dev.js

Error in ./node_modules/@sanity/form-builder/lib/sanity/inputs/SanityArrayInput.js
Module not found: Error: Can't resolve '@sanity/initial-value-templates' in 'C:\projects\seeuferweg-studio\node_modules\@sanity\form-builder\lib\sanity\inputs'
 @ ./node_modules/@sanity/form-builder/lib/sanity/inputs/SanityArrayInput.js 14:29-71
 @ ./node_modules/@sanity/form-builder/lib/sanity/inputResolver/resolveArrayInput.js
 @ ./node_modules/@sanity/form-builder/lib/sanity/inputResolver/inputResolver.js
 @ ./node_modules/@sanity/form-builder/lib/sanity/SanityFormBuilderContext.js
 @ ./node_modules/@sanity/form-builder/lib/sanity/legacyPartImplementations/form-builder.js (part:@sanity/form-builder)
 @ ./node_modules/@sanity/desk-tool/lib/components/BrokenReferences.js
 @ ./node_modules/@sanity/desk-tool/lib/utils/withInitialValue.js
 @ ./node_modules/@sanity/desk-tool/lib/panes/documentPane/documentPaneProvider.js
 @ ./node_modules/@sanity/desk-tool/lib/panes/documentPane/index.js
 @ ./node_modules/@sanity/desk-tool/lib/panes/DeskToolPane.js
 @ ./node_modules/@sanity/desk-tool/lib/panes/index.js
 @ ./node_modules/@sanity/desk-tool/lib/tool/DeskToolPanes.js
 @ ./node_modules/@sanity/desk-tool/lib/tool/DeskTool.js
 @ ./node_modules/@sanity/desk-tool/lib/tool/index.js
 @ ./node_modules/@sanity/vision/lib/VisionTool.js (all:part:@sanity/base/tool)
 @ ./node_modules/@sanity/default-layout/lib/router.js
 @ ./node_modules/@sanity/default-layout/lib/Root.js (part:@sanity/base/root)
 @ ./node_modules/@sanity/base/lib/components/SanityRoot.js (part:@sanity/base/sanity-root)
 @ ./node_modules/@sanity/server/lib/browser/entry-dev.js
 @ multi ./node_modules/@sanity/server/lib/browser/entry-dev.js

Error in ./node_modules/@sanity/base/lib/schema/createSchema.js (part:@sanity/base/schema-creator)
Module not found: Error: Can't resolve '@sanity/schema/_internal' in 'C:\projects\seeuferweg-studio\node_modules\@sanity\base\lib\schema'
 @ ./node_modules/@sanity/base/lib/schema/createSchema.js (part:@sanity/base/schema-creator 7:16-51)
 @ ./schemas/schema.js (part:@sanity/base/schema)
 @ ./node_modules/@sanity/default-layout/lib/schemaErrors/SchemaErrorReporter.js
 @ ./node_modules/@sanity/default-layout/lib/DefaultLayout.js
 @ ./node_modules/@sanity/default-layout/lib/Root.js (part:@sanity/base/root)
 @ ./node_modules/@sanity/base/lib/components/SanityRoot.js (part:@sanity/base/sanity-root)
 @ ./node_modules/@sanity/server/lib/browser/entry-dev.js
 @ multi ./node_modules/@sanity/server/lib/browser/entry-dev.js

Error in ./node_modules/@sanity/base/lib/__legacy/@sanity/components/panes/DefaultPane.js (part:@sanity/components/panes/default)
Module not found: Error: Can't resolve '@sanity/structure' in 'C:\projects\seeuferweg-studio\node_modules\@sanity\base\lib\__legacy\@sanity\components\panes'
 @ ./node_modules/@sanity/base/lib/__legacy/@sanity/components/panes/DefaultPane.js (part:@sanity/components/panes/default 12:17-45)
 @ ./node_modules/@sanity/desk-tool/lib/panes/loadingPane/LoadingPane.js
 @ ./node_modules/@sanity/desk-tool/lib/panes/loadingPane/index.js
 @ ./node_modules/@sanity/desk-tool/lib/panes/index.js
 @ ./node_modules/@sanity/desk-tool/lib/tool/DeskToolPanes.js
 @ ./node_modules/@sanity/desk-tool/lib/tool/DeskTool.js
 @ ./node_modules/@sanity/desk-tool/lib/tool/index.js
 @ ./node_modules/@sanity/vision/lib/VisionTool.js (all:part:@sanity/base/tool)
 @ ./node_modules/@sanity/default-layout/lib/router.js
 @ ./node_modules/@sanity/default-layout/lib/Root.js (part:@sanity/base/root)
 @ ./node_modules/@sanity/base/lib/components/SanityRoot.js (part:@sanity/base/sanity-root)
 @ ./node_modules/@sanity/server/lib/browser/entry-dev.js
 @ multi ./node_modules/@sanity/server/lib/browser/entry-dev.js

Error in ./node_modules/@sanity/base/lib/_exports/structure-builder.js
Module not found: Error: Can't resolve '@sanity/structure' in 'C:\projects\seeuferweg-studio\node_modules\@sanity\base\lib\_exports'
 @ ./node_modules/@sanity/base/lib/_exports/structure-builder.js 8:17-45
 @ ./node_modules/@sanity/base/structure-builder.js
 @ ./node_modules/@sanity/default-layout/lib/util/getNewDocumentModalActions.js
 @ ./node_modules/@sanity/default-layout/lib/DefaultLayout.js
 @ ./node_modules/@sanity/default-layout/lib/Root.js (part:@sanity/base/root)
 @ ./node_modules/@sanity/base/lib/components/SanityRoot.js (part:@sanity/base/sanity-root)
 @ ./node_modules/@sanity/server/lib/browser/entry-dev.js
 @ multi ./node_modules/@sanity/server/lib/browser/entry-dev.js

Error in ./node_modules/@sanity/desk-tool/lib/structure-builder.js
Module not found: Error: Can't resolve '@sanity/structure' in 'C:\projects\seeuferweg-studio\node_modules\@sanity\desk-tool\lib'
 @ ./node_modules/@sanity/desk-tool/lib/structure-builder.js 13:17-45
 @ ./node_modules/@sanity/desk-tool/lib/defaultStructure.js
 @ ./node_modules/@sanity/desk-tool/lib/utils/resolvePanes.js
 @ ./node_modules/@sanity/desk-tool/lib/components/IntentResolver.js
 @ ./node_modules/@sanity/desk-tool/lib/tool/index.js
 @ ./node_modules/@sanity/vision/lib/VisionTool.js (all:part:@sanity/base/tool)
 @ ./node_modules/@sanity/default-layout/lib/router.js
 @ ./node_modules/@sanity/default-layout/lib/Root.js (part:@sanity/base/root)
 @ ./node_modules/@sanity/base/lib/components/SanityRoot.js (part:@sanity/base/sanity-root)
 @ ./node_modules/@sanity/server/lib/browser/entry-dev.js
 @ multi ./node_modules/@sanity/server/lib/browser/entry-dev.js

Error in ./node_modules/@sanity/desk-tool/lib/components/StructureError.js
Module not found: Error: Can't resolve '@sanity/structure' in 'C:\projects\seeuferweg-studio\node_modules\@sanity\desk-tool\lib\components'
 @ ./node_modules/@sanity/desk-tool/lib/components/StructureError.js 10:17-45
 @ ./node_modules/@sanity/desk-tool/lib/components/IntentResolver.js
 @ ./node_modules/@sanity/desk-tool/lib/tool/index.js
 @ ./node_modules/@sanity/vision/lib/VisionTool.js (all:part:@sanity/base/tool)
 @ ./node_modules/@sanity/default-layout/lib/router.js
 @ ./node_modules/@sanity/default-layout/lib/Root.js (part:@sanity/base/root)
 @ ./node_modules/@sanity/base/lib/components/SanityRoot.js (part:@sanity/base/sanity-root)
 @ ./node_modules/@sanity/server/lib/browser/entry-dev.js
 @ multi ./node_modules/@sanity/server/lib/browser/entry-dev.js
Sep 13, 2021, 1:08 PM
Error in ./node_modules/@sanity/desk-tool/lib/utils/validateStructure.js
Module not found: Error: Can't resolve '@sanity/structure' in 'C:\projects\seeuferweg-studio\node_modules\@sanity\desk-tool\lib\utils'
 @ ./node_modules/@sanity/desk-tool/lib/utils/validateStructure.js 8:17-45
 @ ./node_modules/@sanity/desk-tool/lib/utils/resolvePanes.js
 @ ./node_modules/@sanity/desk-tool/lib/components/IntentResolver.js
 @ ./node_modules/@sanity/desk-tool/lib/tool/index.js
 @ ./node_modules/@sanity/vision/lib/VisionTool.js (all:part:@sanity/base/tool)
 @ ./node_modules/@sanity/default-layout/lib/router.js
 @ ./node_modules/@sanity/default-layout/lib/Root.js (part:@sanity/base/root)
 @ ./node_modules/@sanity/base/lib/components/SanityRoot.js (part:@sanity/base/sanity-root)
 @ ./node_modules/@sanity/server/lib/browser/entry-dev.js
 @ multi ./node_modules/@sanity/server/lib/browser/entry-dev.js

Error in ./node_modules/@sanity/base/lib/datastores/document/document-pair/validation.js
Module not found: Error: Can't resolve '@sanity/validation' in 'C:\projects\seeuferweg-studio\node_modules\@sanity\base\lib\datastores\document\document-pair'
 @ ./node_modules/@sanity/base/lib/datastores/document/document-pair/validation.js 14:18-47
 @ ./node_modules/@sanity/base/lib/datastores/document/document-store.js
 @ ./node_modules/@sanity/base/lib/datastores/document (part:@sanity/base/datastore/document)
 @ ./node_modules/@sanity/react-hooks/lib/useDocumentOperationEvent.js
 @ ./node_modules/@sanity/react-hooks/lib/index.js
 @ ./node_modules/@sanity/desk-tool/lib/panes/documentPane/documentPaneProvider.js
 @ ./node_modules/@sanity/desk-tool/lib/panes/documentPane/index.js
 @ ./node_modules/@sanity/desk-tool/lib/panes/DeskToolPane.js
 @ ./node_modules/@sanity/desk-tool/lib/panes/index.js
 @ ./node_modules/@sanity/desk-tool/lib/tool/DeskToolPanes.js
 @ ./node_modules/@sanity/desk-tool/lib/tool/DeskTool.js
 @ ./node_modules/@sanity/desk-tool/lib/tool/index.js
 @ ./node_modules/@sanity/vision/lib/VisionTool.js (all:part:@sanity/base/tool)
 @ ./node_modules/@sanity/default-layout/lib/router.js
 @ ./node_modules/@sanity/default-layout/lib/Root.js (part:@sanity/base/root)
 @ ./node_modules/@sanity/base/lib/components/SanityRoot.js (part:@sanity/base/sanity-root)
 @ ./node_modules/@sanity/server/lib/browser/entry-dev.js
 @ multi ./node_modules/@sanity/server/lib/browser/entry-dev.js

Error in ./node_modules/@sanity/base/lib/schema/createSchema.js (part:@sanity/base/schema-creator)
Module not found: Error: Can't resolve '@sanity/validation' in 'C:\projects\seeuferweg-studio\node_modules\@sanity\base\lib\schema'
 @ ./node_modules/@sanity/base/lib/schema/createSchema.js (part:@sanity/base/schema-creator 9:18-47)
 @ ./schemas/schema.js (part:@sanity/base/schema)
 @ ./node_modules/@sanity/default-layout/lib/schemaErrors/SchemaErrorReporter.js
 @ ./node_modules/@sanity/default-layout/lib/DefaultLayout.js
 @ ./node_modules/@sanity/default-layout/lib/Root.js (part:@sanity/base/root)
 @ ./node_modules/@sanity/base/lib/components/SanityRoot.js (part:@sanity/base/sanity-root)
 @ ./node_modules/@sanity/server/lib/browser/entry-dev.js
 @ multi ./node_modules/@sanity/server/lib/browser/entry-dev.js

Error in ./node_modules/@sanity/vision/lib/VisionTool.js (all:part:@sanity/base/tool)
Module not found: Error: Can't resolve 'C:\projects\seeuferweg-studio\node_modules\@sanity\dashboard\lib\DashboardTool' in 'C:\projects\seeuferweg-studio\node_modules\@sanity\vision\lib'
 @ ./node_modules/@sanity/vision/lib/VisionTool.js (all:part:@sanity/base/tool 14:2-98)
 @ ./node_modules/@sanity/default-layout/lib/router.js
 @ ./node_modules/@sanity/default-layout/lib/Root.js (part:@sanity/base/root)
 @ ./node_modules/@sanity/base/lib/components/SanityRoot.js (part:@sanity/base/sanity-root)
 @ ./node_modules/@sanity/server/lib/browser/entry-dev.js
 @ multi ./node_modules/@sanity/server/lib/browser/entry-dev.js

Error from chokidar (C:\): Error: EBUSY: resource busy or locked, lstat 'C:\DumpStack.log.tmp'
Sep 13, 2021, 1:09 PM
Hey (Removed Name). Any chance a restart jogs that log file and gets you up and running? If not, any differences in versions (node, sanity/cli, etc.)?
Sep 13, 2021, 4:04 PM
Hey (Removed Name), thanks for the reply 😃So I've just upgraded to the latest version (
v2.19.2) and now it's working 🤷‍♂️
Sep 13, 2021, 5:39 PM
Great! 🎉
Sep 13, 2021, 5:40 PM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?