File uploader component throwing JS error while mapping to public URL

File upload component is working fine in localhost but throwing JS error when map to public URL.