Closed homerjam closed 2 months ago
Hi! Can you test with the latest release? https://github.com/sanity-io/sanity/releases/tag/v3.40.0
Works, thanks!
Could you tell me what was the fix - just curious : )
We had to mock matchMedia when loading the schema since it's a browser land method not available in the cli 🙂
Describe the bug
Cannot deploy graphql when using mux input
To Reproduce
Steps to reproduce the behavior:
export default defineConfig({ ... plugins: [structureTool(), visionTool(), muxInput()], ... })
@sanity/cli (global) 3.39.1 (up to date) @sanity/eslint-config-studio 4.0.0 (up to date) @sanity/vision 3.39.1 (up to date) sanity 3.39.1 (up to date)
10.2.3 v18.19.0
TypeError: Failed to load configuration file "/Users/jameshomer/Projects/abc/src/lib/sanity/sanity.config.ts": l.matchMedia is not a function at el (~/Projects/abc/node_modules/.pnpm/@mux+mux-player@2.5.0/node_modules/@mux/mux-player/dist/index.cjs.js:145:8374) at Object. (~/Projects/abc/node_modules/.pnpm/@mux+mux-player@2.5.0/node_modules/@mux/mux-player/dist/index.cjs.js:145:8586)
at Object.newLoader [as .js] (~/Projects/abc/src/lib/sanity/node_modules/.pnpm/esbuild-register@3.5.0_esbuild@0.20.2/node_modules/esbuild-register/dist/node.js:2262:9)
at extensions..js (~/Projects/abc/src/lib/sanity/node_modules/.pnpm/esbuild-register@3.5.0_esbuild@0.20.2/node_modules/esbuild-register/dist/node.js:4838:24)
ELIFECYCLE Command failed with exit code 1.