django-vue-template icon indicating copy to clipboard operation
django-vue-template copied to clipboard

Uncaught ReferenceError: webpackJsonp is not defined

Open DavidLSO opened this issue 7 years ago • 3 comments

During runtime I came across the following problem while running the django runserver, do you know what it can be?

DavidLSO avatar Feb 23 '18 18:02 DavidLSO

Dear @DavidLSO,

Could you please paste the whole output of the error? It's difficult to guess without context :)

ariera avatar Feb 24 '18 11:02 ariera

I solved it with

   {% if not DEBUG %}
        {% render_bundle 'manifest' 'js' %}
        {% render_bundle 'vendor' 'js' %}
    {% endif %}
    {% render_bundle 'app' %}

jono-allen avatar Apr 15 '18 18:04 jono-allen

The problem is when you use the npm run build command. It generates 3 bundles: manifest, vendor and app. That bundles have to be imported in that order, if not, it will throw webpackJsonp is not defined.

npm run dev only generates the app bundle

LTroya avatar Apr 18 '18 15:04 LTroya