-
Notifications
You must be signed in to change notification settings - Fork 339
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
KeyError in loader.py upon error. #69
Comments
The stats/manifest file is read only for webpack-loader. It is supposed to be written to only by webpack and read by django. Django should never write to it. |
The error is on read. |
OK. I suspect you are using webpack config wrong. You should use |
Please disregard to previous message. I thought I was replying to something else. Sorry. |
@jleclanche This seems to be an issue when using typescript. This has been reported before: django-webpack/webpack-bundle-tracker#12 I'd be happy to accept a PR against |
get_bundle
defines the following:However, upon some webpack errors, my
assets
dict contained the following:Therefore, django-webpack-loader crashed, shadowing the root cause of the crash. Was quite frustrating.
I can PR a simple fix that stubs
error
if it's not in there, but it seems like it's very much supposed to be in there.The text was updated successfully, but these errors were encountered: