Closed styk-tv closed 2 months ago
@styk-tv I'm aware of the issue. 🥲 Even when creating a new custom component, using the Checkbox component, it gives errors too. It may be part of a bigger issue from Gradio's side? Especially considering this one used to work just fine.
10:34:12 PM Pre-transform error: Failed to resolve import
"virtual:component-loader" from
"frontend/node_modules/@gradio/utils/src/utils.ts?v=28e0ad1b". Does the
file exist?
10:34:12 PM Internal server error: Failed to resolve import
"virtual:component-loader" from
"frontend/node_modules/@gradio/utils/src/utils.ts?v=28e0ad1b". Does the
file exist?
Plugin: vite:import-analysis
File:
/Users/dwancin/Documents/Gradio/toggle/frontend/node_modules/@gradio/utils
/src/utils.ts?v=28e0ad1b:217:10
127| this.client = client;
128| if (!virtual_component_loader) {
129| import("virtual:component-loader").then((module) => {
| ^
130| this._load_component = module.load_component;
131| virtual_component_loader = module.load_component;
at TransformPluginContext._formatError
(file:///Users/dwancin/Documents/Gradio/toggle/frontend/node_modules/vite/
dist/node/chunks/dep-C1-ZB6nQ.js:49746:41)
at TransformPluginContext.error
(file:///Users/dwancin/Documents/Gradio/toggle/frontend/node_modules/vite/
dist/node/chunks/dep-C1-ZB6nQ.js:49741:16)
at normalizeUrl
(file:///Users/dwancin/Documents/Gradio/toggle/frontend/node_modules/vite/
dist/node/chunks/dep-C1-ZB6nQ.js:64326:23)
at process.processTicksAndRejections
(node:internal/process/task_queues:95:5)
at async
file:///Users/dwancin/Documents/Gradio/toggle/frontend/node_modules/vite/d
ist/node/chunks/dep-C1-ZB6nQ.js:64458:39
at async Promise.all (index 0)
at async TransformPluginContext.transform
(file:///Users/dwancin/Documents/Gradio/toggle/frontend/node_modules/vite/
dist/node/chunks/dep-C1-ZB6nQ.js:64385:7)
at async PluginContainer.transform
(file:///Users/dwancin/Documents/Gradio/toggle/frontend/node_modules/vite/
dist/node/chunks/dep-C1-ZB6nQ.js:49587:18)
at async loadAndTransform
(file:///Users/dwancin/Documents/Gradio/toggle/frontend/node_modules/vite/
dist/node/chunks/dep-C1-ZB6nQ.js:52409:27)
at async viteTransformMiddleware
(file:///Users/dwancin/Documents/Gradio/toggle/frontend/node_modules/vite/
dist/node/chunks/dep-C1-ZB6nQ.js:62168:24)
demo from readme not working on. can anyone repro?
-- Python python 3.11.9 gradio 4.36.1
-- OS conda 23.11.0 Microsoft Windows [Version 10.0.22631.3737]
--UI
-- Web Console Output