#33353: Can't collect static files if don't have vendor's JavaScript source map
files
-------------------------------------+-------------------------------------
     Reporter:  Michael              |                    Owner:  nobody
         Type:  Bug                  |                   Status:  closed
    Component:  contrib.staticfiles  |                  Version:  4.0
     Severity:  Release blocker      |               Resolution:  invalid
     Keywords:  manifeststatic       |             Triage Stage:
  storage                            |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by aodin):

 Django Rest Framework does not include its source map files despite
 linking to them: https://github.com/encode/django-rest-
 
framework/blob/fd8adb32cec9c7545039f03cc3aa6cda95d4d692/rest_framework/static/rest_framework/css/bootstrap.min.css#L6

 The `collectstatic` command is currently broken for any builds on Django
 4.1 that include DRF and use `ManifestStaticFilesStorage`.

 Developers will need to either:

 1. Downgrade to 4.0 until DRF adds its source maps (or removes the link to
 them)
 2. Sub-class `ManifestStaticFilesStorage` with their own fix, such as
 disabling `manifest_strict` or reverting the matched patterns (both of
 which are mentioned above)

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33353#comment:15>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070182653329e8-0fbeb832-8ce6-4951-b735-5a5517b46386-000000%40eu-central-1.amazonses.com.

Reply via email to