Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update redoc.min.js sourceMapURL to point to correct map path #860

Closed
wants to merge 1 commit into from

Conversation

anthonyalmarza
Copy link

When running manage.py collectstatic on a project that also uses whitenoise automated builds will break due to an incorrect sourceMapURL path. The following error is reported.

whitenoise.storage.MissingFileError: The file 'drf-yasg/redoc-old/redoc.min.map' could not be found with <whitenoise.storage.CompressedManifestStaticFilesStorage object at 0x7f9f03d5ed10>.

The JS file 'drf-yasg/redoc-old/redoc.min.js' references a file which could not be found:
  drf-yasg/redoc-old/redoc.min.map

Please check the URL references in this JS file, particularly any
relative paths which might be pointing to the wrong location.

A workaround is to copy the related statics maintained here into your own project (fixing the path of course).

@anthonyalmarza anthonyalmarza changed the title Update redoc.min.js to point to correct map path Update redoc.min.js sourceMapURL to point to correct map path Jul 5, 2023
@JoelLefkowitz
Copy link
Collaborator

Completed in #859 thanks @anthonyalmarza!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants