Open Raf-sns opened 1 month ago
Can you please paste your package.json and vite config file in a reply (if you have them).
Thanks.
Hi, Thanks for your help. My package.json file :
{
"name": "gradio",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"devDependencies": {
"@gradio/client": "^0.17.0",
"vite": "^5.4.1"
}
}
I don't have some vite.config.js file. Regards, Raf
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 commandnpm install
I created amain.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