Skip to content

Commit 08a1c96

Browse files
authored
Update faq.rst
fix style
1 parent 33b2ce1 commit 08a1c96

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

frontend/encore/faq.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,13 @@ With something along the lines of
180180
Uncaught PHP Exception Twig\Error\RuntimeError: "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.
181181
182182
..
183+
183184
This is happening because you did not build your encore assets, hence no ``entrypoints.json`` file. Plus encore is working in strict mode by default, which causes twig functions ``encore_entry_*`` to panic.
184185

185186
To solve that you can add this to your ``config/packages/test/webpack_encore.yaml``
186187

187188
.. code-block:: yaml
189+
188190
webpack_encore:
189191
strict_mode: false
190192
..

0 commit comments

Comments
 (0)