Olszewskidev / lens-up

LensUp is a web application that serves as a virtual gallery, allowing party guests to upload their photos from the event and also write down their wishes.
50 stars 1 forks source link

failed to resolve "extends":"../../tsconfig.json" in /app/tsconfig.json #79

Open JanSafronov opened 1 month ago

JanSafronov commented 1 month ago

I have tried to run the application in a codespace using Docker compose, this throws an error for the ui packages, for example a portion of the logs when trying to start lensup.galleryservice.ui is as follows

➜  Local:   http://localhost:5001/
  ➜  Network: http://172.22.0.7:5001/
TSConfckParseError:   Failed to scan for dependencies from entries:
  /app/index.html

  failed to resolve "extends":"../../tsconfig.json" in /app/tsconfig.json
    at resolveExtends (file:///app/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:14376:8)
    at parseExtends (file:///app/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:14311:24)
    at parse$f (file:///app/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:14171:23)
    at async loadTsconfigJsonForFile (file:///app/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:15032:24)
    at async prepareEsbuildScanner (file:///app/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:51330:32)
    at async file:///app/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:52004:38
node:internal/process/promises:289
            triggerUncaughtException(err, true /* fromPromise */);
            ^

[Failed to load PostCSS config: Failed to load PostCSS config (searchPath: /app): [Error] Loading PostCSS Plugin failed: Cannot find module 'tailwindcss'
Require stack:
- /app/postcss.config.js

(@/app/postcss.config.js)
Error: Loading PostCSS Plugin failed: Cannot find module 'tailwindcss'
Require stack:
- /app/postcss.config.js

(@/app/postcss.config.js)
    at load (file:///app/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:29093:11)
    at file:///app/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:29118:16
    at Array.map (<anonymous>)
    at plugins (file:///app/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:29117:8)
    at processResult (file:///app/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:29187:14)
    at file:///app/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:29317:14]
JanSafronov commented 1 month ago

And regarding the latest commits made by @Olszewskidev the issue is still present in a slightly different way. I have tried running docker compose in a codespace and similar or related errors were raised

Olszewskidev commented 1 month ago

Should works now. Check docs please https://github.com/Olszewskidev/lens-up?tab=readme-ov-file#how-to-run-lensup-locally