Skip to content Skip to sidebar Skip to footer

Keyerror At / 'assets' And Modulenotfounderror: No Module Named 'webpack_loader'

When I am at http://127.0.0.1:8000/ I'm getting this error KeyError at / 'assets' In settings.py Installed apps INSTALLED_APPS = [ 'django.contrib.admin', 'django.contri

Solution 1:

The error seems to be in the webpack package. This answer should help: Django Webpack Loader: "Assets" KeyError?

Solution 2:

ModuleNotFoundError: No module named 'webpack_loader' (SOLVED)

If you already have done pip install django-webpack-loader==0.7.0

Do like this:

First do:

pip uninstall django-webpack-loader==0.7.0

or

pip uninstall django-webpack-loader

After that tap y and then enter

then:

pip install django-webpack-loader==0.7.0

Solution 3:

In order to use django-webpack-loader>=1.0.0, you must ensure that webpack-bundle-tracker@1.0.0 is being used on the JavaScript side.

https://pypi.org/project/django-webpack-loader/

This will surely work for you!

Post a Comment for "Keyerror At / 'assets' And Modulenotfounderror: No Module Named 'webpack_loader'"