GitHub user dosubot[bot] added a comment to the discussion: Cutom Docker Image 
Build and deplument via Helm

<!-- Answer -->
You're seeing these errors because the production Docker build runs stricter 
type checks and uses the actual module export structure, which can surface 
issues that dev mode hides.

For the antd-v5 warnings: the code is trying to import named exports like 
`TooltipProps` and `TooltipPlacement` from `'antd-v5/lib/tooltip'`, but antd-v5 
only provides a default export there. This is a common breaking change after 
major UI library upgrades. You'll need to update your import statements to 
match the new antd-v5 structure—check the official antd-v5 docs or look for 
type exports in a different location or from the default export.

The TypeScript errors (TS6133, TS2345, TS7006) are caught during the production 
build because the build process enforces strict type checking. Dev mode (like 
with docker-compose) often skips or relaxes these checks, so you don't see the 
errors until you do a full production build. To fix these, remove unused 
variables, ensure your types match the expected signatures, and add explicit 
type annotations where needed.

The Dockerfile only runs the full build (with all checks) when `DEV_MODE` is 
false, which is why these errors only appear in production Docker builds and 
not in dev mode. The build process does not run frontend React tests by 
default—these are type and module errors, not test failures. 

If you want the build to succeed, you'll need to update your imports and fix 
the TypeScript errors so the production build passes all checks. For more on 
why these differences happen, see [this 
explanation](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/Dockerfile)
 and [npm build script 
details](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/package.json).


<!-- 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/412148bc-1153-4005-83e1-757a6eadb277?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/412148bc-1153-4005-83e1-757a6eadb277?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/412148bc-1153-4005-83e1-757a6eadb277?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/412148bc-1153-4005-83e1-757a6eadb277?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/412148bc-1153-4005-83e1-757a6eadb277?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/412148bc-1153-4005-83e1-757a6eadb277?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/412148bc-1153-4005-83e1-757a6eadb277?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=github)&
 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/discussions/34882)

GitHub link: 
https://github.com/apache/superset/discussions/34882#discussioncomment-14244451

----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: 
notifications-unsubscr...@superset.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org
For additional commands, e-mail: notifications-h...@superset.apache.org

Reply via email to