Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workaround antd v3 error in the production build #1276

Merged
merged 1 commit into from
Mar 15, 2023

Conversation

mszabo-wikia
Copy link
Contributor

@mszabo-wikia mszabo-wikia commented Mar 15, 2023

Which problem is this PR solving?

Short description of the changes

It seems that the antd v3 upgrade in
cda1746 causes an error in the production build, apparently due to a bad interplay with vite/esbuild bundling. As a workaround, provide an import alias for the antd icon sprite file that's causing the issue.[1]


[1] ant-design/ant-design#19002 (comment)

It seems that the antd v3 upgrade in
cda1746 causes an error in the
production build, apparently due to a bad interplay with vite/esbuild
bundling. As a workaround, provide an import alias for the antd icon
sprite file that's causing the issue.[1]

---
[1] ant-design/ant-design#19002 (comment)

Signed-off-by: Máté Szabó <[email protected]>
@mszabo-wikia
Copy link
Contributor Author

As far as I see, #1261 will remove the need for this workaround, since that will switch icons to use individual imports rather than a central sprite with all icons. I'll make a point to test the production build case with that to determine whether the workaround can be removed then.

@codecov
Copy link

codecov bot commented Mar 15, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (543de7a) 95.35% compared to head (5d2e421) 95.35%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1276   +/-   ##
=======================================
  Coverage   95.35%   95.35%           
=======================================
  Files         244      244           
  Lines        7753     7753           
  Branches     2016     2016           
=======================================
  Hits         7393     7393           
  Misses        360      360           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@yurishkuro yurishkuro merged commit 06cc66c into jaegertracing:main Mar 15, 2023
@yurishkuro
Copy link
Member

Thanks for quick fix

@mszabo-wikia
Copy link
Contributor Author

You're welcome, sorry about the issue :)

Katarzyna-B pushed a commit to vervegroup/jaeger-ui that referenced this pull request Mar 20, 2023
## Which problem is this PR solving?
- Unbreak the UI in the production build (closes jaegertracing#1275)
## Short description of the changes
It seems that the antd v3 upgrade in
cda1746 causes an error in the
production build, apparently due to a bad interplay with vite/esbuild
bundling. As a workaround, provide an import alias for the antd icon
sprite file that's causing the issue.[1]

---
[1]
ant-design/ant-design#19002 (comment)

Signed-off-by: Máté Szabó <[email protected]>
Binrix pushed a commit to Binrix/jaeger-ui that referenced this pull request Apr 18, 2023
## Which problem is this PR solving?
- Unbreak the UI in the production build (closes jaegertracing#1275)
## Short description of the changes
It seems that the antd v3 upgrade in
cda1746 causes an error in the
production build, apparently due to a bad interplay with vite/esbuild
bundling. As a workaround, provide an import alias for the antd icon
sprite file that's causing the issue.[1]

---
[1]
ant-design/ant-design#19002 (comment)

Signed-off-by: Máté Szabó <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1.28.0 released artifacts do not work in all-in-one
2 participants