How do I fix an uncaught TypeError?
All the properties can be searched and found from the code in Drupal core. And they seems to be the properties of drupalSettings object in JS.

This object is initialised in core/misc/drupalSettingsLoader.js.

(function () {

  'use strict';

  // Use direct child elements to harden against XSS exploits when CSP is on.
  var settingsElement = document.querySelector('head &gt; script[type="application/json"][data-drupal-selector="drupal-settings-json"], body &gt; script[type="application/json"][data-drupal-selector="drupal-settings-json"]');

  ....


This code explained that the drupalSettings is contained in 

&lt;script type="application/json" data-drupal-selector="drupal-settings-json"&gt;


And it must be under &lt;head&gt; or &lt;body&gt;.

I suspect that your &lt;script&gt; tag is wrapped in other element. Please check your template files and remove the wrappers or check if there is a content with missing closing tag.