You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IDE code completion on PWA with the docker install
I'm encountering a problem with coding on the PWA when using the Docker installation: there is no autocomplete functionality, and my IDE (PhpStorm) is displaying errors because node modules cannot be found.
Ex: TS2307: Cannot find module next or its corresponding type declarations.
I assume the issue comes from pnpm storing modules in /.pnpm-store (default pnpm dir defined in pwa/Dockerfile),
and pwa/node_modules contains only symlinks, which my IDE (on the host machine) cannot resolve...
I tried to set up a bound volume for pwa in compose.override.yaml :
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
IDE code completion on PWA with the docker install
I'm encountering a problem with coding on the PWA when using the Docker installation: there is no autocomplete functionality, and my IDE (PhpStorm) is displaying errors because node modules cannot be found.
Ex:
TS2307: Cannot find module next or its corresponding type declarations.
I assume the issue comes from pnpm storing modules in
/.pnpm-store
(default pnpm dir defined in pwa/Dockerfile),and
pwa/node_modules
contains only symlinks, which my IDE (on the host machine) cannot resolve...I tried to set up a bound volume for pwa in compose.override.yaml :
but it didnt work (obvisouly but i still tried :D)
For now i changed the pwa/Dockerfile to use npm instead of pnpm in dev but i'd rather keep pnpm if possible.
Any tips ?
Second point :
the
/.pnpm_store
should maybe be added as a volume for consistency and performances (when rebuilding) ?I'm on Windows11 with Docker Desktop 4.18.0
Beta Was this translation helpful? Give feedback.
All reactions