Skip to content

[Bug]: Custom theme precompile emits unresolved flag-icons asset warnings #4512

Description

@Viajaz

What happened?

When using the supported custom theme feature with PWP__THEME set to a mounted custom theme, the container logs many warnings during asset precompilation for unresolved flag icon SVG assets.

Example warnings:

WARN -- : Unable to resolve '../flags/4x3/xx.svg' for missing asset '../flags/4x3/xx.svg' in application-custom.css
WARN -- : Unable to resolve '../flags/1x1/xx.svg' for missing asset '../flags/1x1/xx.svg' in application-custom.css
WARN -- : Unable to resolve '../flags/4x3/ad.svg' for missing asset '../flags/4x3/ad.svg' in application-custom.css
WARN -- : Unable to resolve '../flags/1x1/ad.svg' for missing asset '../flags/1x1/ad.svg' in application-custom.css

Might have something to do with using $fi-path instead of $flag-icons-path but I ran out of time to verify myself, apologies.

🔬 How to reproduce

Use PWP__THEME with a mounted custom theme

💻 Code sample

🌍 Which edition

oss.pwpush.com

🌍 Environment

  • pwpush.com (Hosted)
  • Docker Image – pwpush
  • Docker Image – pwpush-public-gateway
  • Docker Image – pwpush-worker
  • Docker Image – Custom image
  • Digital Ocean – App Platform
  • Digital Ocean – Kubernetes Service
  • Heroku
  • Microsoft Azure – App Service
  • Microsoft Azure – Container Instances (ACI)
  • Microsoft Azure – Container Apps (ACA)
  • Microsoft Azure – Kubernetes Service (AKS)
  • Google Cloud – App Engine
  • Google Cloud – Cloud Run
  • Google Cloud – Kubernetes Engine
  • AWS – Elastic Container Service (ECS)
  • AWS – Kubernetes Service
  • Source Code
  • Other (please specify below)

Other Install location

No response

📦 App version

No response

📸 Screenshots

No response

📈 Expected behavior

No response

📎 Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions