Yêu cầu thg 2 20, 2023 7:16 SA 74 0 0
  • 74 0 0
+1

Vấn đề Webpack của Rails App trên AWS Fargate

Chia sẻ
  • 74 0 0

Chào mọi người, mình đang deploy Rails app config bằng Docker lên AWS Fargate. Vấn đề mình đang gặp phải là Webpack báo lỗi ActionView::Template::Error. Hi vọng nhận sự giúp đỡ từ mọi người, thanks all!

[cec3-4468-8653-cb81bdf06e0b] ActionView::Template::Error (Error: Undefined variable: "$fa-css-prefix".
        on line 4:2 of app/assets/stylesheets/fontawesome/scss/_animated.scss
>> .#{$fa-css-prefix}-spin {

   -^
):
[cec3-4468-8653-cb81bdf06e0b]      9:     <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
[cec3-4468-8653-cb81bdf06e0b]     10:
[cec3-4468-8653-cb81bdf06e0b]     11:     <%= raw sentry_tag %>
[cec3-4468-8653-cb81bdf06e0b]     12:     <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
[cec3-4468-8653-cb81bdf06e0b]     13:     <%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
[cec3-4468-8653-cb81bdf06e0b]     14:
[cec3-4468-8653-cb81bdf06e0b]
[cec3-4468-8653-cb81bdf06e0b] app/assets/stylesheets/fontawesome/scss/_animated.scss:4
[cec3-4468-8653-cb81bdf06e0b] app/views/layouts/application.html.erb:12
Viblo
Hãy đăng ký một tài khoản Viblo để nhận được nhiều bài viết thú vị hơn.
Đăng kí