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

Error when deploying on a distant server : Cannot find base config file "./.svelte-kit/tsconfig.json" #301

Closed
samichaignonmejai opened this issue Jun 15, 2023 · 2 comments
Labels
support A request for help setting things up

Comments

@samichaignonmejai
Copy link

Hey,

I'm having troubles deploying HuggingChat on a distant server, when I run HuggingChat, I get the following error :

[email protected] start-chat-ui
> cd ../chat-ui && npm run dev -- --host 127.0.0.1


> [email protected] dev
> vite dev --host 127.0.0.1

▲ [WARNING] Cannot find base config file "./.svelte-kit/tsconfig.json" [tsconfig.json]

    tsconfig.json:2:12:
      2 │   "extends": "./.svelte-kit/tsconfig.json",
        ╵              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

failed to load config from /home/paperspace/***/chat-ui/vite.config.ts
error when starting dev server:
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'unplugin-icons' imported from /home/paperspace/***/chat-ui/vite.config.ts.timestamp-1686857376175-9d68e4b73b2d7.mjs
    at new NodeError (node:internal/errors:405:5)
    at packageResolve (node:internal/modules/esm/resolve:781:9)
    at moduleResolve (node:internal/modules/esm/resolve:830:20)
    at defaultResolve (node:internal/modules/esm/resolve:1035:11)
    at DefaultModuleLoader.resolve (node:internal/modules/esm/loader:269:12)
    at DefaultModuleLoader.getModuleJob (node:internal/modules/esm/loader:153:32)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:76:33)
    at link (node:internal/modules/esm/module_job:75:36) 

I tried to reinstall svelte but I can't understand where this warning comes from as I have the latest version and my file tsconfig.json exists in the installation folder of svelte...

I tried to modify the package.json as suggested here sveltejs/kit#7028 but it is still unable to work properly...

Anyone has an idea of why I'm still having this issue ?

@nsarrazin nsarrazin added the support A request for help setting things up label Jun 19, 2023
@nsarrazin
Copy link
Collaborator

I don't think the issue is with the warning about tsconfig.json I think it's more that you are missing dependencies (here unplugin-icons)

Did you run npm install before building/deploying your install ? 👀

@samichaignonmejai
Copy link
Author

Indeed, I felt really ashamed after spending 3 hours on it to notice that i forgot to run npm install and could not figure how to delete my issue !
Thank you very much for your help Nathan ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support A request for help setting things up
Projects
None yet
Development

No branches or pull requests

2 participants