poloclub / transformer-explainer

Transformer Explained Visually: Learn How LLM Transformer Models Work with Interactive Visualization
https://poloclub.github.io/transformer-explainer/
MIT License
3.11k stars 278 forks source link

Cannot find base config file #18

Closed tendrillion closed 2 months ago

tendrillion commented 2 months ago

transformer-explainer@0.0.1 dev vite dev

▲ [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/kylin/repository/llm/transformer-explainer/vite.config.ts error when starting dev server: Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@sveltejs/kit' imported from /home/kylin/repository/llm/transformer-explainer/vite.config.ts.timestamp-1723605158626-c1400c886470e.mjs at packageResolve (node:internal/modules/esm/resolve:854:9) at moduleResolve (node:internal/modules/esm/resolve:927:18) at defaultResolve (node:internal/modules/esm/resolve:1169:11) at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:383:12) at ModuleLoader.resolve (node:internal/modules/esm/loader:352:25) at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:227:38) at ModuleWrap. (node:internal/modules/esm/module_job:87:39) at link (node:internal/modules/esm/module_job:86:36)

aereeeee commented 2 months ago

Hello @tendrillion! If you have cloned the project and installed the packages, the .svelte-kit folder should exist in the project directory. I recommend trying to reinstall the packages:

npm cache clean --force
rm -rf node_modules
npm install