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

Static Collection failing on Django 4.0 #112

Open
0rdinal opened this issue Mar 9, 2022 · 3 comments
Open

Static Collection failing on Django 4.0 #112

0rdinal opened this issue Mar 9, 2022 · 3 comments

Comments

@0rdinal
Copy link

0rdinal commented Mar 9, 2022

Collecting static files seems to be failing on Django 4.0 with the following error message:

Post-processing 'froala_editor/js/languages/nb.js' failed!

Traceback (most recent call last):
  File "/home/runner/work/alpha/alpha/manage.py", line 20, in <module>
    main()
  File "/home/runner/work/alpha/alpha/manage.py", line 16, in main
    execute_from_command_line(sys.argv)
  File "/home/runner/.cache/pypoetry/virtualenvs/alpha-t0XnxaYO-py3.9/lib/python3.9/site-packages/django/core/management/__init__.py", line 446, in execute_from_command_line
    utility.execute()
  File "/home/runner/.cache/pypoetry/virtualenvs/alpha-t0XnxaYO-py3.9/lib/python3.9/site-packages/django/core/management/__init__.py", line 440, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/runner/.cache/pypoetry/virtualenvs/alpha-t0XnxaYO-py3.9/lib/python3.9/site-packages/django/core/management/base.py", line 414, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/home/runner/.cache/pypoetry/virtualenvs/alpha-t0XnxaYO-py3.9/lib/python3.9/site-packages/django/core/management/base.py", line 460, in execute
    output = self.handle(*args, **options)
  File "/home/runner/.cache/pypoetry/virtualenvs/alpha-t0XnxaYO-py3.9/lib/python3.9/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 209, in handle
    collected = self.collect()
  File "/home/runner/.cache/pypoetry/virtualenvs/alpha-t0XnxaYO-py3.9/lib/python3.9/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 154, in collect
    raise processed
whitenoise.storage.MissingFileError: The file 'froala_editor/js/languages/nb.js.map' could not be found with <whitenoise.storage.CompressedManifestStaticFilesStorage object at 0x7f08b7b9d250>.

The JS file 'froala_editor/js/languages/nb.js' references a file which could not be found:
  froala_editor/js/languages/nb.js.map

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

Environment

This is the environment the step was run in:

python = "3.9"
Django = "4.0.3"
whitenoise = "6.0.0"
django-froala-editor = "4.0.9"

This process does still work when using Django 3.2.12 so I'm assuming this is a compatibility issue with Django 4.0

@abdussalam02
Copy link

I am also going through the same issue. If you have found a permanent solution let me know.

@areski
Copy link

areski commented Apr 29, 2024

Same issues too :( Any pointer?

@bastien-aressas
Copy link

Same here ! 😭

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

No branches or pull requests

4 participants