Open silvertech-daniel opened 3 weeks ago
Describe the bug
Importing a theme from https://themer.sanity.build/api/hues in sanity.config.ts causes an error like
https://themer.sanity.build/api/hues
sanity.config.ts
Error: Failed to load configuration file ".../sanity.config.ts": Cannot find module 'https://themer.sanity.build/api/hues?...' Require stack: - .../sanity.config.ts - .../node_modules/sanity/lib/_chunks-cjs/getStudioWorkspaces.js - .../node_modules/sanity/lib/_internal/cli/threads/extractSchema.js at Module._resolveFilename (.../node_modules/esbuild-register/dist/node.js:4794:36) at TracingChannel.traceSync (node:diagnostics_channel:315:14) at Object.<anonymous> (.../sanity.config.ts:9:23) at Module._compile (.../node_modules/esbuild-register/dist/node.js:2258:26)
Expected behavior
Versions
> npm -v 10.8.3 > node -v v22.9.0 > npx sanity versions @sanity/cli (global) 3.59.1 (up to date) @sanity/asset-utils 1.3.0 (latest: 2.0.6) @sanity/icons 3.4.0 (up to date) @sanity/react-loader 1.10.7 (up to date) @sanity/schema 3.59.1 (up to date) @sanity/ui 2.8.9 (up to date) @sanity/vision 3.59.1 (up to date) @sanity/visual-editing 2.1.10 (up to date) sanity 3.59.1 (up to date)
@silvertech-daniel did you find a workaround?
@devinhalladay I got through this by vendoring the file
Describe the bug
Importing a theme from
https://themer.sanity.build/api/hues
insanity.config.ts
causes an error likeExpected behavior
Versions