Open abmnv opened 6 days ago
The same for me on windows 11 and Wsl2. Node 18 and Node 20 Python 3.10 and 3.12 always the same error. This kind of error doesn't appear only using Button as template. #8669
@pngwn looks like it could be related to the chatbot changes related to loading components? The issue does not happen in version 4.36.1
@pngwn looks like it could be related to the chatbot changes related to loading components? The issue does not happen in version 4.36.1
this issue still happend in gradio version 4.36.1
I can't repro on 4.36.1 with the textbox template!
This error does not occur if python==3.11.9
and node==v18.20.3
, it not affected by gradio version
This error does not occur if
python==3.11.9
andnode==v18.20.3
, and gradio==4.36.1 This is the answer on Custom component --template Label:
'''No custom components were found in G:\GRADIO\CUSTOM_COMPONENTS\superlabel. It is likely that dev mode does not work properly. Please pass the --gradio-path and --python-path CLI arguments so that gradio uses the right executables." And nothing load in browser'''
If supply python-path and gradio-path as arguments:
I like Gradio but this kind of error made me crazy ( too much dependency: Node, Svelte, Vite... )
Error on wsl2 python==3.11.9 and node==v18.20.3, and gradio==4.37.2
I can't repro on 4.36.1 with the textbox template!
Work only with Button template, with other template component no, Textbox too. Is possible there's a combination between components and other frameworks ( Node ? Vite ? Compiler ?) that creates a bad environment. Furthermore, the code in button.svelte calls a minimum quantity of modules....
I'll fix this next week, it requires a refactor of the @gradio/utils
package. We need to split internal utils from general utils.
Describe the bug
I am following documentation for creating Custom Components on MacOS and getting the following error after running "gradio cc dev" step: "Internal server error: Failed to resolve import "virtual:component-loader" from "frontend/node_modules/@gradio/utils/src/utils.ts?v=365c25ca". Does the file exist?". The file "utils.ts" does exists in the node_modules directory. The error seems to point to Vite virtual modules that may be is not configured properly.
Have you searched existing issues? 🔎
Reproduction
Screenshot
Logs
System Info
Severity
Blocking usage of gradio