title: Symfony Error: "An exception has been thrown during the rendering of a template"
body: <p>I am trying to include </p>
  
  <pre><code>&lt;link href="{{ asset('css/mystyle.css') }}"
        rel="stylesheet"/&gt; 
  </code></pre>
  
  <p>in my twig file and render it. But it gives me <strong>Uncaught PHP Exception Twig_Error_Runtime:</strong> </p>
  
  <blockquote>
    <p>"An exception has been thrown during the rendering of a template
    ("Asset manifest file "/../public/build/manifest.json" does not
    exist.")</p>
  </blockquote>
  
  <p>It does work when i use </p>
  
  <pre><code>link href="css/mystyle.css"
            rel="stylesheet"/&gt;
  </code></pre>
  
  <p>.
  Following is my controller:</p>
  
  <pre><code>    &lt;?php
  
  namespace App\Controller;
  
  use Symfony\Component\Routing\Annotation\Route;
  use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  use Symfony\Component\HttpFoundation\Response;
  
  class WelcomeController extends AbstractController
  {
      /**
       * @Route("/", name="welcome")
       */
      public function index()
      {
          return $this-&gt;render('welcome/index.html.twig');
      }
  }
  </code></pre>
  
  <p>Following is my twig template:</p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"&gt;
      &lt;meta name="description" content=""&gt;
      &lt;meta name="author" content=""&gt;
  
      &lt;title&gt;Let's Explore Symfony 4&lt;/title&gt;
  
      &lt;!-- Bootstrap core CSS --&gt;
      &lt;link rel="stylesheet"
            href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.3/css/bootstrap.min.css"
            integrity="sha384-Zug+QiDoJOrZ5t4lssLdxGhVrurbmBWopoEl+M6BdEfwnCJZtKxi1KgxUyJq13dy"
            crossorigin="anonymous"&gt;
  
      &lt;link href="{{ asset('css/mystyle.css') }}"
            rel="stylesheet"/&gt;
  
  &lt;/head&gt;
  
  &lt;body&gt;
  &lt;header&gt;
      &lt;nav class="navbar navbar-expand-sm navbar-dark bg-dark"&gt;
          &lt;div class="container"&gt;
  
              &lt;a class="navbar-brand" href="#"&gt;Home&lt;/a&gt;
  
              &lt;div class="collapse navbar-collapse"&gt;
                  &lt;ul class="navbar-nav mr-auto"&gt;
                      &lt;li class="nav-item"&gt;
                          &lt;a class="nav-link" href="#"&gt;Hello Page&lt;/a&gt;
                      &lt;/li&gt;
                  &lt;/ul&gt;
              &lt;/div&gt;
          &lt;/div&gt;
  
      &lt;/nav&gt;
  &lt;/header&gt;
  
  &lt;main role="main" class="container main"&gt;
      &lt;div&gt;
          &lt;h1&gt;Let's Explore Symfony 4&lt;/h1&gt;
          &lt;p class="lead"&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras rutrum sapien mauris, venenatis
              facilisis neque tincidunt vel. Maecenas vel felis vel turpis scelerisque eleifend. Fusce nec purus egestas,
              efficitur nisi ac, ultrices nulla. Pellentesque eu mollis tortor, in mollis nisl. Maecenas rhoncus quam non
              lacinia mollis.&lt;/p&gt;
      &lt;/div&gt;
  &lt;/main&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>How can i resolve this issue?</p>