title: React Fragment results in Element Type is Invalid Error in Visual Studio 2017
body: <p>I am encountering this error when attempting to use Fragments with React / Typescript with Visual Studio 2017:</p>
  
  <p><strong>NodeInvocationException:</strong> Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: symbol.</p>
  
  <p><strong>Stack:</strong></p>
  
  <ul>
  <li>react 16.3</li>
  <li>react-dom 16.3</li>
  <li>typescript 2.6.2</li>
  </ul>
  
  <p>I am also testing with sample code:</p>
  
  <pre><code>public render() {
          return (
              &lt;&gt;
              Some text.
              &lt;h2&gt;A heading&lt;/h2&gt;
              More text.
              &lt;h2&gt;Another heading&lt;/h2&gt;
              Even more text.
            &lt;/&gt;
          );
      }
  </code></pre>
  
  <p>I found similar issues <a href="https://stackoverflow.com/questions/48235692/jsx-fragment-syntax-generates-element-type-is-invalid">here</a>. In his last comments Stephen Muhr says he updated his vendor.js bundle to get it to work without providing much details. From his comments, it sounds like he had an issue with upgrading to react 16.2. However, for me, I can verify that react 16.3 is running successfully (I output react version at runtime). So, it may not resolve my issue. I could not add to comments on that question since I am a new user.</p>
  
  <p>Since the error is a server side error, I am thinking I am missing a configuration specifying the correct version of typescript. I used npm install typescript@2.6.2 and it exists in the node_modules folder. I also downloaded the TypeScript SDK for 2.6.2 and installed it. I've also set the project properties to Typescript 2.6 (and have also tried 'use latest'). None of these have worked.</p>
  
  <p>I can not figure out how to output the typescript version being used at run-time.</p>
  
  <p><strong>EDIT</strong>
  The following returned different versions of typescript on my machine:
   - <strong>tsc -v</strong> yields 2.3.5. 
   - <strong>npm ls -g typescript</strong> yields 2.6.2. 
   - <strong>npm ls typescript</strong> yields 2.6.2. </p>
  
  <p>So, it looks like tsc -v is out of date but I have no idea how to update it.</p>
  
  <p>If anyone can offer any suggestions as to what may be causing this error, I would appreciate it. Thank you.</p>