Uncaught InvalidArgumentException: The css file doesn't exist. Please check if the file js/vendor/chosen/chosen.css exists in any context or search for themedCSS

<%- if @topic_view.topic.tags.present? %>
<%= t 'js.tagging.tags' %>: <%- @topic_view.topic.tags.each do |t| %> <%= t %> <%- end %>
<% end %>

I don’t know why i am getting this error. It exist here

/public_html/public/themes/main/js/vendor/chosen/chosen.css

here are additional errors displayed.

  • @param string $media Comma-separated list of media types to use in the link tag
    •                   (e.g. 'screen,projector')
      
    */
    public function themedCSS($name, $media = null)
    {
    $path = ThemeResourceLoader::inst()->findThemedCSS($name, SSViewer::get_themes());
    if ($path) {
    $this->css($path, $media);
    } else {
    throw new InvalidArgumentException(
    "The css file doesn’t exist. Please check if the file $name.css exists in any context or search for "
    . “themedCSS references calling this file in your templates.”
    );
    }
    }

How are you adding the CSS to the site? Are you using Requirements::themedCSS() in your PHP code, or adding it in a template? What file path are you using in those commands?