froala / django-froala-editor

Package to integrate Froala WYSIWYG HTML rich text editor with Django.
https://froala.com/wysiwyg-editor
283 stars 72 forks source link

Static Collection failing on Django 4.0 #112

Open 0rdinal opened 2 years ago

0rdinal commented 2 years ago

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 commented 1 year ago

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

areski commented 4 months ago

Same issues too :( Any pointer?

bastien-aressas commented 2 months ago

Same here ! 😭