Getting error while running the frontend container
Closed this issue · 10 comments
Did you ran npm i
? Can you please run npm ci
from Frontend container. Will it help?
How to reproduce it? It is a common issue, but we never had a real step-by-step to reproduce it!
did I use this to connect to frontend container ? "docker-compose exec frontend bash -l"
I tried this but it's said no such service?
i have run npm ci from the theme directory but its doesn't work at all
docker-compose -f docker-compose.yml -f docker-compose.frontend.yml -f docker-compose.ssl.yml pull
run this first then docker-compose -f docker-compose.yml -f docker-compose.frontend.yml -f docker-compose.ssl.yml up -d
then i log the frontend container its building but after that its always give the same error ?
Yes, yes. Sorry, please use the docker-compose exec -u user app bash -l
to get into to the app
. I miss-spelled. Go to /var/www/public/app/design/frontend/Scandiweb/pwa
, run npm ci
and npm run build
for now. The restart your stack with docker-compose -f ... up -d
.
And also, please report your node -v
from the app container. And node -v
from frontend container (use the command docker-compose exec frontend bash -l
to get inside). Make sure they are both 10.
I have tried everything but still frontend container creating issue :( @alfredsgenkins
The same issue? Wow!
Let me address this issue and get back to you tommorow. For now, there is a fix from community:
docker-compose exec -u root app bash
n 10
exit
docker-compose exec -u user app bash
cd app/design/frontend/Scandiweb/pwa
npm ci
I am sorry for long reply, notifications were not sending. Sorry!
I think you must go to container frontend and rebuild node-sass:
docker exec -ti <docker_frontend_id> bash
npm rebuild node-sass
:D
@jundat95 no, this was not helping.
This issue has been resolved, we have updated the NODE_JS version to 10 in the app container and in the Frontend.