You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm trying the Gradio JavaScript client with Vite.js.
I created a new project with vite/JavaScript/Vanilla
I ran the command npm i @gradio/client
I ran the project build with the command npm install
I created a main.js file where I copied a basic example from the documentation:
I get the following error: Uncaught SyntaxError: The requested module '/node_modules/.vite/deps/@gradio_client.js?v=0cabf73f' does not provide an export named 'handle_file' (at main.js? [sm]:4:18)
I am new to Node.js,
Thank you for your help or comments.
Sincerely,
Raf
Have you searched existing issues? 🔎
I have searched and found no existing issues
Reproduction
importgradioasgr
Screenshot
No response
Logs
No response
System Info
npm i -D @gradio/client
Severity
Blocking usage of gradio
The text was updated successfully, but these errors were encountered:
I don't have some vite.config.js file.
Regards,
Raf
abidlabs
changed the title
Uncaught SyntaxError: The requested module '/node_modules/.vite/deps/@gradio_client.js?v=0cabf73f' does not provide an export named 'handle_file'
Error using Gradio JavaScript client with Vite.js
Sep 10, 2024
Describe the bug
Hi,
I'm trying the Gradio JavaScript client with Vite.js.
I created a new project with vite/JavaScript/Vanilla
I ran the command
npm i @gradio/client
I ran the project build with the command
npm install
I created a
main.js
file where I copied a basic example from the documentation:main.js
I get the following error:
Uncaught SyntaxError: The requested module '/node_modules/.vite/deps/@gradio_client.js?v=0cabf73f' does not provide an export named 'handle_file' (at main.js? [sm]:4:18)
I am new to Node.js,
Thank you for your help or comments.
Sincerely,
Raf
Have you searched existing issues? 🔎
Reproduction
Screenshot
No response
Logs
No response
System Info
Severity
Blocking usage of gradio
The text was updated successfully, but these errors were encountered: