title: setup.txt / setup.typoscript not being loaded in module
body: <p>I'm writing an extensio in Typo3 9.5 and I can't get the setup.txt or setup.typoscript to load.</p>
  
  <p>I am trying to add a second page type that renders only JSON. For that I gather I need to change the typoscript. Therefore I added this code to my setup.typoscript:</p>
  
  <pre><code>ajax_ajaxjson = PAGE
  ajax_ajaxjson {
      typeNum = 1
  
      config {
          disableAllHeaderCode = 1
          additionalHeaders = {
              10 {
                  header = Content-Type: application/json
                  replace = 1
              }
          }
          xhtml_cleaning = 0
          debug = 0
          no_cache = 1
          admPanel = 0
      }
  
      10 &lt; tt_content.list.20.tx_energieportal_ajaxjson
  }
  </code></pre>
  
  <p><em>(in EXT:\Configuration\TypoScript\setup.txt)</em></p>
  
  <p>Now when trying to load that page type, I get the following error: </p>
  
  <pre><code>TYPO3\CMS\Core\Error\Http\ServiceUnavailableException
  The page is not configured! [type=1][]. This means that there is no TypoScript object of type PAGE with typeNum=1 configured.
  </code></pre>
  
  <p>I also added a test variable, and when rendering that variable with </p>
  
  <pre><code>&lt;f:cObject typoscriptObjectPath="testvar"/&gt;
  </code></pre>
  
  <p>I get the error:</p>
  
  <pre><code>No Content Object definition found at TypoScript object path "testvar"
  </code></pre>
  
  <p>I setup my sys_template.php up like this:</p>
  
  <pre><code>&lt;?php
  defined('TYPO3_MODE') or die();
  
  \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile(
      'energieportal',
      'Configuration/TypoScript',
      'Energieportal Frontend'
  );
  </code></pre>
  
  <p><em>(in EXT:\Configuration\TCA\sys_template.php).</em></p>
  
  <p>I also tried renaming the setup.txt to setup.typoscript.</p>
  
  <p>Is there anything else I need to do to have my module load the setup.typoscript? I looked at the docs and other modules, but I couldn't find anything for setting up that file.</p>
  
  <p>I used the search function, but the only similar question wasn't really answered. (<a href="https://stackoverflow.com/questions/58750393/typo3-setup-typoscript-configured-does-not-show-any-results">Link</a>)</p>