Skip to content

Fix: pipeline failure by svg loader

Lixin Wan请求将fix/pipeline-failure-by-svg-loader合并到main-jh

What does this MR do and why?

This mr used to fix pipeline failure (1000938)

Failed pipeline: https://jihulab.com/gitlab-cn/gitlab/-/pipelines/1000938/failures

Failed job: https://jihulab.com/gitlab-cn/gitlab/-/jobs/6626099

Related upstream issue : https://gitlab.com/gitlab-org/gitlab/-/issues/391589

failure:

ERROR in /Users/gitlab/project/jh-gdk/gitlab/jh/app/assets/images/leaderboard/medal_gold.svg 1:0
Module parse failed: Unexpected token (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
> <svg fill="none" height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><path d="m16 30c7.732 0 14-6.268 14-14 0-7.73199-6.268-14-14-14-7.73199 0-14 6.26801-14 14 0 7.732 6.26801 14 14 14z" fill="#ffc400"/><path clip-rule="evenodd" d="m16 4c-6.62742 0-12 5.37258-12 12 0 6.6274 5.37258 12 12 12 6.6274 0 12-5.3726 12-12 0-6.62742-5.3726-12-12-12zm-16 12c0-8.83656 7.16344-16 16-16 8.8366 0 16 7.16344 16 16 0 8.8366-7.1634 16-16 16-8.83656 0-16-7.1634-16-16z" fill="#fff" fill-rule="evenodd"/><path d="m16 30c7.732 0 14-6.268 14-14 0-7.73199-6.268-14-14-14-7.73199 0-14 6.26801-14 14 0 7.732 6.26801 14 14 14z" fill="#fb722e" opacity=".1"/><path d="m16 26c5.5228 0 10-4.4772 10-10s-4.4772-10-10-10-10 4.4772-10 10 4.4772 10 10 10z" fill="#fff"/><path d="m13 19.0644h2.0171v-5.6854h-1.749v-1.4785c1.0213-.2014 1.6851-.4704 2.3488-.9005h1.6725v8.0644h1.7106v1.9356h-6z" fill="#ffc400"/></svg>
 @ /Users/gitlab/project/jh-gdk/gitlab/jh/app/assets/javascripts/analytics/performance_analytics/components/member_item.vue?vue&type=script&lang=js& (/Users/gitlab/project/jh-gdk/gitlab/node_modules/babel-loader/lib??ref--2!/Users/gitlab/project/jh-gdk/gitlab/node_modules/vue-loader/lib??vue-loader-options!/Users/gitlab/project/jh-gdk/gitlab/jh/app/assets/javascripts/analytics/performance_analytics/components/member_item.vue?vue&type=script&lang=js&) 6:0-61 41:26-35
 @ /Users/gitlab/project/jh-gdk/gitlab/jh/app/assets/javascripts/analytics/performance_analytics/components/member_item.vue?vue&type=script&lang=js&
 @ /Users/gitlab/project/jh-gdk/gitlab/jh/app/assets/javascripts/analytics/performance_analytics/components/member_item.vue
 @ /Users/gitlab/project/jh-gdk/gitlab/node_modules/babel-loader/lib??ref--2!/Users/gitlab/project/jh-gdk/gitlab/node_modules/vue-loader/lib??vue-loader-options!/Users/gitlab/project/jh-gdk/gitlab/jh/app/assets/javascripts/analytics/performance_analytics/components/rank_list.vue?vue&type=script&lang=js&
 @ /Users/gitlab/project/jh-gdk/gitlab/jh/app/assets/javascripts/analytics/performance_analytics/components/rank_list.vue?vue&type=script&lang=js&
 @ /Users/gitlab/project/jh-gdk/gitlab/jh/app/assets/javascripts/analytics/performance_analytics/components/rank_list.vue
 @ /Users/gitlab/project/jh-gdk/gitlab/node_modules/babel-loader/lib??ref--2!/Users/gitlab/project/jh-gdk/gitlab/node_modules/vue-loader/lib??vue-loader-options!/Users/gitlab/project/jh-gdk/gitlab/jh/app/assets/javascripts/analytics/performance_analytics/components/performance_board.vue?vue&type=script&lang=js&
 @ /Users/gitlab/project/jh-gdk/gitlab/jh/app/assets/javascripts/analytics/performance_analytics/components/performance_board.vue?vue&type=script&lang=js&
 @ /Users/gitlab/project/jh-gdk/gitlab/jh/app/assets/javascripts/analytics/performance_analytics/components/performance_board.vue
 @ /Users/gitlab/project/jh-gdk/gitlab/node_modules/babel-loader/lib??ref--2!/Users/gitlab/project/jh-gdk/gitlab/node_modules/vue-loader/lib??vue-loader-options!/Users/gitlab/project/jh-gdk/gitlab/jh/app/assets/javascripts/analytics/performance_analytics/components/index.vue?vue&type=script&lang=js&
 @ /Users/gitlab/project/jh-gdk/gitlab/jh/app/assets/javascripts/analytics/performance_analytics/components/index.vue?vue&type=script&lang=js&
 @ /Users/gitlab/project/jh-gdk/gitlab/jh/app/assets/javascripts/analytics/performance_analytics/components/index.vue
 @ /Users/gitlab/project/jh-gdk/gitlab/jh/app/assets/javascripts/analytics/performance_analytics/index.js
 @ /Users/gitlab/project/jh-gdk/gitlab/jh/app/assets/javascripts/pages/projects/analytics/performance_analytics/index.js
 @ multi ./main ee/pages/projects/index.js jh/pages/projects/analytics/performance_analytics/index.js

Describe in detail what your merge request does and why.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Lixin Wan 编辑于

合并请求报告

加载中