Closed 1manfactory closed 1 year ago
Hi there!
To fix this, continue on with the install steps here: https://symfony.com/doc/current/frontend/encore/installation.html#installing-encore-in-symfony-applications - specifically running yarn install
or node install
then building the Webpack assets (which you'll find on this page - https://symfony.com/doc/current/frontend/encore/simple-example.html - e.g. yarn watch
).
If you're new to Encore, give that "Setting up your Project" page a quick read - it'll help clarify how things work :).
Cheers!
Did the following to create a new Symfony 6 project:
so far nothing special. Then
php bin/console make:controller
to create a simply Home-Controller
Then I wanted to install Bootstrap with Encore Bundle according to
composer require symfony/webpack-encore-bundle
Now when I open the website I get the error:
An exception has been thrown during the rendering of a template ("Could not find the entrypoints file from Webpack: the file "/var/www/html//public/build/entrypoints.json" does not exist.").
It's this line/command causing the problem in templates/base.html.twig (line 9) :
{{ encore_entry_link_tags('app') }}
Just as a hint: There is not only entrypoints.json - but the whole folder public/build does not exist at all.
What do I have to do?