Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encountered Type Error When Running $gradio cc dev #32

Open
koi953215 opened this issue Jul 29, 2024 · 0 comments
Open

Encountered Type Error When Running $gradio cc dev #32

koi953215 opened this issue Jul 29, 2024 · 0 comments

Comments

@koi953215
Copy link

koi953215 commented Jul 29, 2024

I am working on developing my own Gradio package using the code from this repository as a template. I have followed these steps:

  1. Cloned the repository.
  2. Navigated to the frontend directory and ran npm install.
  3. Modified app.py to import ImageSlider from the backend directory instead of using the pip install

However, when attempting to test locally using the command "gradio cc dev", I encounter the following error:

Encountered type error
Plugin: vite-plugin-svelte 
File: /home_nfs/koi953215/imageslider/frontend/Index.svelte
      at throwError (/home_nfs/koi953215/imageslider/frontend/node_modules/svelte-preprocess/dist/modules/errors.js:5:11)

      at throwTypescriptError (/home_nfs/koi953215/imageslider/frontend/node_modules/svelte-preprocess/dist/modules/errors.js:9:28)

      at transpileTs (/home_nfs/koi953215/imageslider/frontend/node_modules/svelte-preprocess/dist/transformers/typescript.js:215:47)

      at mixedImportsTranspiler (/home_nfs/koi953215/imageslider/frontend/node_modules/svelte-preprocess/dist/transformers/typescript.js:270:60)

      at transformer (/home_nfs/koi953215/imageslider/frontend/node_modules/svelte-preprocess/dist/transformers/typescript.js:344:11)

      at transform (/home_nfs/koi953215/imageslider/frontend/node_modules/svelte-preprocess/dist/autoProcess.js:46:12)

      at async /home_nfs/koi953215/imageslider/frontend/node_modules/svelte-preprocess/dist/autoProcess.js:117:29

      at async script (/home_nfs/koi953215/imageslider/frontend/node_modules/svelte-preprocess/dist/autoProcess.js:147:33)

      at async process_single_tag (file:///home_nfs/koi953215/imageslider/frontend/node_modules/svelte/src/compiler/preprocess/index.js:285:21)

      at async Promise.all (index 0)

Could you please provide instructions or troubleshooting steps to address this error? Any additional information or guidance on setting up the local development environment correctly would be highly appreciated.

Thank you for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant