Hi every one,
i make a sap application with a angular(front) and the module can't be found
- node and all the dependencis are work with a docker file and docker compose
# Aller dans le dossier Angular
WORKDIR /app/angular
# Copier uniquement les fichiers nécessaires pour les dépendances
COPY angular/package*.json ./
# Installer dépendances
RUN npm install -g @angular/cli \
&& npm install
# Copier le reste du projet
COPY angular/ ./
EXPOSE 4200
CMD ["npx", "ng", "serve", "--host", "0.0.0.0", "--port", "4200"]
# docker build -f angular/Dockerfile.angular -t logisticants-angular .
# docker run -it --rm logisticants-angular sh ```
docker compose
``` angular:
build:
context: .
dockerfile: angular/Dockerfile.angular
container_name: logisticants-angular
ports:
- "4200:4200"
volumes:
- ./angular:/app/angular
- /app/angular/node_modules
networks:
- mynetwork ```
the container work and i can execute npm to installe packages (like vitest and angular)
so, when i work and created front content (model, service, component and test) the modules are not found on my project
``` Cannot find module '@angular/core' or its corresponding type declarations. ```
also, the dependance are on my package.json
help me pls