formapro / JsFormValidatorBundle

The Javascript validation for Symfony 2, 3 and 4 forms
MIT License
128 stars 56 forks source link

Error installation on Symfony 3.3.6 (assetic dump) #133

Open JSkalskiSBG opened 7 years ago

JSkalskiSBG commented 7 years ago

When I type bin/console assetic:dump it shows:

ERROR [assetic] The template "FpJsFormValidatorBundle::javascripts-dev.html.twig" contains an error: Unknown "update_js_lib" function in "FpJsFormValidatorBundle::javascripts-dev.html.twig" at line 13. [] []

On website it shows:

An exception has been thrown during the rendering of a template ("Unable to generate a URL for the named route "_assetic_a4f1674_0" as such route does not exist.").

Problem description: Assetic tries to get resources from 'test' TWIG file and in this file is call to a function that is definied only in test environment.

System: Symfony: 3.3.6 PHP: 7.1.8 AsseticBundle: 2.8.2