oumoussa98 / vue3-infinite-loading

Infinite scroll component compatible with vuejs-3 and vitejs
https://vue3-infinite-loading.netlify.app/
191 stars 31 forks source link

Compiler error when running demo project from dev branch #64

Open teisnet opened 1 year ago

teisnet commented 1 year ago

I get a warning Cannot find base config file "@vue/tsconfig/tsconfig.json" and an error Cannot read properties of undefined (reading 'sys') when running the demo project from the dev branch. Running the demo from the main branch works fine.

Executing task: pnpm run dev 

> vu3-infinite-loading-demo@0.0.0 dev C:\...\vue3-infinite-loading\demo
> vite

▲ [WARNING] Cannot find base config file "@vue/tsconfig/tsconfig.json" [tsconfig.json]

    ../tsconfig.json:2:13:
      2 │   "extends": "@vue/tsconfig/tsconfig.json",
        ╵              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  VITE v3.2.7  ready in 599 ms

  ➜  Local:   http://localhost:5173/
  ➜  Network: use --host to expose
Cannot read properties of undefined (reading 'sys')
14.22.51 [vite] Internal server error: Cannot read properties of undefined (reading 'sys')
  Plugin: vite:vue
  File: C:/.../vue3-infinite-loading/src/components/InfiniteLoading.vue
      at resolveFS (C:\...\vue3-infinite-loading\demo\node_modules\@vue\compiler-sfc\dist\compiler-sfc.cjs.js:18372:35)
      at importSourceToScope (C:\...\vue3-infinite-loading\demo\node_modules\@vue\compiler-sfc\dist\compiler-sfc.cjs.js:18397:14)
      at resolveTypeFromImport (C:\...\vue3-infinite-loading\demo\node_modules\@vue\compiler-sfc\dist\compiler-sfc.cjs.js:18393:23)
      at innerResolveTypeReference (C:\...\vue3-infinite-loading\demo\node_modules\@vue\compiler-sfc\dist\compiler-sfc.cjs.js:18299:14)
      at resolveTypeReference (C:\...\vue3-infinite-loading\demo\node_modules\@vue\compiler-sfc\dist\compiler-sfc.cjs.js:18288:36)
      at innerResolveTypeElements (C:\...\vue3-infinite-loading\demo\node_modules\@vue\compiler-sfc\dist\compiler-sfc.cjs.js:17945:24)
      at resolveTypeElements (C:\...\vue3-infinite-loading\demo\node_modules\@vue\compiler-sfc\dist\compiler-sfc.cjs.js:17902:35)
      at resolveRuntimePropsFromType (C:\...\vue3-infinite-loading\demo\node_modules\@vue\compiler-sfc\dist\compiler-sfc.cjs.js:19312:20)
      at genRuntimePropsFromTypes (C:\...\vue3-infinite-loading\demo\node_modules\@vue\compiler-sfc\dist\compiler-sfc.cjs.js:19288:17)
      at genRuntimeProps (C:\...\vue3-infinite-loading\demo\node_modules\@vue\compiler-sfc\dist\compiler-sfc.cjs.js:19278:18)
14.22.52 [vite] Internal server error: Cannot read properties of undefined (reading 'sys')
  Plugin: vite:vue
  File: C:/.../vue3-infinite-loading/src/components/InfiniteLoading.vue
      at resolveFS (C:\...\vue3-infinite-loading\demo\node_modules\@vue\compiler-sfc\dist\compiler-sfc.cjs.js:18372:35)
      at importSourceToScope (C:\...\vue3-infinite-loading\demo\node_modules\@vue\compiler-sfc\dist\compiler-sfc.cjs.js:18397:14)
      at resolveTypeFromImport (C:\...\vue3-infinite-loading\demo\node_modules\@vue\compiler-sfc\dist\compiler-sfc.cjs.js:18393:23)
      at innerResolveTypeReference (C:\...\vue3-infinite-loading\demo\node_modules\@vue\compiler-sfc\dist\compiler-sfc.cjs.js:18299:14)
      at resolveTypeReference (C:\...\vue3-infinite-loading\demo\node_modules\@vue\compiler-sfc\dist\compiler-sfc.cjs.js:18288:36)
      at innerResolveTypeElements (C:\...\vue3-infinite-loading\demo\node_modules\@vue\compiler-sfc\dist\compiler-sfc.cjs.js:17945:24)
      at resolveTypeElements (C:\...\vue3-infinite-loading\demo\node_modules\@vue\compiler-sfc\dist\compiler-sfc.cjs.js:17902:35)
      at resolveRuntimePropsFromType (C:\...\vue3-infinite-loading\demo\node_modules\@vue\compiler-sfc\dist\compiler-sfc.cjs.js:19312:20)
      at genRuntimePropsFromTypes (C:\...\vue3-infinite-loading\demo\node_modules\@vue\compiler-sfc\dist\compiler-sfc.cjs.js:19288:17)
      at genRuntimeProps (C:\...\vue3-infinite-loading\demo\node_modules\@vue\compiler-sfc\dist\compiler-sfc.cjs.js:19278:18) (x2)