Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django Webpack Loader: "Assets" KeyError?

I recently upgraded a Django app to current Django and Python versions, and updated my pip packages as well. Now I'm getting this error:

Django Version:  3.2.3
Exception Type:  KeyError
Exception Value: 'assets'
Exception Location: /my/env1/lib/python3.8/site-packages/webpack_loader/loader.py, line 90, in get_bundle

Looking at the Exception Location, I see:

enter image description here

...and looking at assets, confirms it has no key named assets:

enter image description here

How do I fix this?

like image 621
VikR Avatar asked Dec 02 '22 09:12

VikR


1 Answers

I'm using Django 3.0.10. Downgrading django-webpack-loader from 1.0.0 to 0.7.0 stopped the error.

like image 131
Richard Pryce Avatar answered Dec 23 '22 05:12

Richard Pryce