Questions tagged [django-webpack-loader]

Django webpack loader is a library in webpack that takes the output generated by webpack-bundle-tracker and use the generated extract in django.

31 questions
9
votes
1 answer

React- Webpack: Cannot read property 'tap' of undefined

I have a React application configured with Django Application. I have different webpack config files for development and production, When I run "npm run start", it gives me error that: Cannot read property 'tap' of undefined package.json file: { …
Reema Parakh
  • 1,347
  • 3
  • 19
  • 46
7
votes
3 answers

Webpack setup with Django

I working on a Vue app in Django via django-webpack-loader, running locally I'm able to get it to work by using the following in my base.html file: {% load render_bundle from webpack_loader %} ... ... {% render_bundle 'app' %} However, in…
Toby
  • 12,743
  • 8
  • 43
  • 75
6
votes
2 answers

Why should we use django-webpack-loader?

I use both webpack and django. Now I move bundled assets to /static/ directory of django each time, so I'd like to make more effective process. I read some articles and many people recommend to use django-webpack-loader, but I don't fully understand…
lipsum
  • 919
  • 2
  • 13
  • 24
4
votes
1 answer

Django webpack loader: how to refer to static images compiled by webpack

I'm setting up webpack for a a Django application, for which django-webpack-loader appears to be the obvious choice. I can compile my js and scss files just fine, but I've hit a wall when it comes to loading in the images. My webpack.config.js file…
4
votes
1 answer

Django + Vue with multiple apps

There are plenty of tutorials and helpful posts how to use Django and Vue properly (in various options) all over the Internet. But I didn't find a single one who describes how to create a Django application which consists of more than one app, each…
nerdoc
  • 1,044
  • 10
  • 28
3
votes
1 answer

How to import a variable from django into vue.js instance

I want to import a variable from a django generated html page into my App.vue component. My goal is to pass a String, which represent the user AuthGroup, eg. 'milkman', 'hairdresser' or 'supplier' The error Message looks like this: Module parse…
wittgenstein
  • 3,670
  • 7
  • 24
  • 41
3
votes
0 answers

Chunk files not calling/ loading in the browser

Trying to use reactjs + django webpack loader + webpack 4. Everything builds perfectly main and other chunks files are generated successfully. Unfortunately, page getting blank and its seems like corresponding chunk file is not calling/loading.…
Jaison James
  • 4,414
  • 4
  • 42
  • 54
2
votes
0 answers

Django, webpack and NPM. Packaging seems to work, but can't access the code

Related questions appear not to be applicable in my case. As I do not understand where the issues lies, perhaps I am just not finding the solution. I have some experience with Django, but this is my first time working with webpack and NPM. My…
Mitchell van Zuylen
  • 3,905
  • 4
  • 27
  • 64
2
votes
1 answer

how to use VueJs components in Django using django webpack loader?

I followed this tutorial and integrated Django and VueJs using django-webpack-loader, now the main.js output from django-webpack-loader is loading to my index.html This is my project directory structure - assets - bundles - app.js - js …
Saro
  • 87
  • 2
  • 12
2
votes
2 answers

django-webpack-loader not rendering react app using react-app-rewired

I'm working on tying my react(16.6.3) and Django(2.0) apps together. Right now I'm just working to get the dev server working and will focus on production later. I've been following a handful of guides on this process, but they're all a little…
brewcrazy
  • 623
  • 13
  • 30
2
votes
1 answer

'webpack_loader' is not a registered tag library

I am starting to learn some react, and trying to learn how to combine ReactJS and Django. I am currently following the proposed tutorial here After setting up the django urls, and installing django-webpack-loader, I am stuck with the following error…
inblank
  • 396
  • 1
  • 8
  • 26
1
vote
1 answer

django webpack loader render_bundle error

We have a legacy Django-webpack app using Django webpack loader. The app code moved into a /app directory and the render_bundle stopped working. The error message is File…
gggrunt
  • 31
  • 3
1
vote
0 answers

Django webpack_loader: `Regex` Undefined?

I've updated a Django app to Python 3.9 and Django 4.0, and I'm getting an error on launch: TypeError: expected string or bytes-like object I tracked it down to this function in python3.9/site-packages/webpack_loader/loader.py: def…
VikR
  • 4,818
  • 8
  • 51
  • 96
1
vote
0 answers

Django, Webpack and Heroku: Error reading /app/webpack-stats.json

I'm trying to use Django with Webpack on Heroku via django-webpack-loader. After pushing the files from the repository to Heroku, I run webpack to generate the static files in /dist as well as webpack-stats.json: npx webpack --config…
Edgar Derby
  • 2,543
  • 4
  • 29
  • 48
1
vote
1 answer

Django webpack loader vuejs+typescript Refused to execute script frombecause its MIME type ('text/html') is not executable

I am using Django as backend and Vue3 as frontend in my application. In development server i did not have problem but now in production i am having problems to render the page. I have followed all the documentations but cannot find a solution. I am…
ytsejam
  • 3,291
  • 7
  • 39
  • 69
1
2 3