Loading chunk 6 failed.
(missing: https://WEB_SERVER.com/82fbafaa3a.CHUNK_NAME.js)

Getting this error message?
Follow this detailed guide to fully understand the problem and fix it.

It is not happening randomly

Sometimes none of your users encounter the error for a few weeks.
Sometimes your logs report that several users faced it within a few hours.

This looks random, right? It is not.

You get this error when React attempts to lazy load a file — eg. a component — but the file does not exist. As of the time of writing this article, most of the solutions found on the internet suggest to try/catch the error, retry a…


When it comes to showing up somewhere in your documentation a diagram describing your database, you often end up with a recurring problem : after a few days / weeks / months, the diagram you made became obsolete.

Yeah, since you made that beautiful diagram, a foreign key has changed, a field that was previously a boolean is now a number, a table has been split in two, a new table has been created, a few fields have been renamed, others removed…

The whole purpose of this article is to keep your diagram up-to-date automatically.

Prerequisite: you are using TypeORM


Good evening ladies and gents, it is going to be SOOO SUNNY tomorrow.

When you get to that tomorrow:

Guys, guys, guys, where the sun at…?

Problem

Weather news are based on probabilities and those probabilities seem to get accurate only on the day itself.

But who has the time and energy to manually check the weather on the day itself, probably on the morning before leaving to work?

Well, certainly not me!

Long story short

tl;dr: with mighty programming skills, I made a bunch of lights automatically show me some weather forecast every day 💡

Let there be light

So… first step: I bought a LED strip, a band made of tiny lights that…


Goal

After reading this, you should be able to store latitude/longitude locations in your Django backend as well as other geospatial data such as polygons delimiting countries, regions, cities, etc.
You should also be able to make advanced awesome and fast requests on these geospatial data the easy-way.

Pre-requisites

You have a working Django backend with a working Postgres database.

Basic approach

For the sake of simplicity, let us focus on a Django backend that has only one model called Client.

from django.db import modelsclass Client(models.Model):
firstname = models.CharField(max_length=100)
lastname = models.CharField(max_length=100)

Now, if you want to add a location to every client…

Raphaël Léger

Lead FullStack Developer. Started coding in 2006. Kept going. https://www.linkedin.com/in/raphael-leger/

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store