dosubot[bot] commented on issue #34577:
URL: https://github.com/apache/superset/issues/34577#issuecomment-3160004532

   <!-- Answer -->
   Your Dockerfile is using Node 18, but Superset's frontend now requires Node 
20.x (see the engines field in `superset-frontend/package.json`). Using Node 16 
or 18 will cause npm build failures or missing assets in the final image, which 
explains why your frontend changes aren't showing up after deployment and why 
`npm run build` fails in Docker builds 
[(reference)](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/package.json).
   
   Update your Dockerfile's frontend build stage to use `node:20-bullseye-slim` 
or `node:20-bookworm-slim` 
[(reference)](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/Dockerfile).
 After making this change, rebuild your image, push it to Nexus, and redeploy. 
Also, make sure Kubernetes is pulling the latest image (set `imagePullPolicy: 
Always` or use unique tags).
   
   If the build still fails, check the npm build logs for errors about missing 
dependencies or incompatible versions. If you see errors like `ENOTEMPTY` or 
permission issues, clean your Docker build cache and volumes before rebuilding 
[(reference)](https://github.com/apache/superset/issues/31951).
   
   Finally, after deployment, exec into your running container and check that 
`/app/superset/static/assets` contains your built frontend files. If it's 
empty, the build step failed or was skipped 
[(reference)](https://github.com/apache/superset/issues/34505).
   
   If you still have issues, please share the exact npm/Docker build error 
output for further diagnosis.
   
   
   <!-- Dosu Comment Footer -->
   *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
   
   ---
   <sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/08c9fd74-388e-4d94-a6d2-85ef378ef2ca?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/08c9fd74-388e-4d94-a6d2-85ef378ef2ca?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/08c9fd74-388e-4d94-a6d2-85ef378ef2ca?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/08c9fd74-388e-4d94-a6d2-85ef378ef2ca?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/08c9fd74-388e-4d94-a6d2-85ef378ef2ca?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/08c9fd74-388e-4d94-a6d2-85ef378ef2ca?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/08c9fd74-388e-4d94-a6d2-85ef378ef2ca?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat
 with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=githu
 b)&nbsp;[![Join 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share
 on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/34577)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to