An exception has been thrown during the rendering of a template ("Template name "/media/Storage/backed-up-storage/work/picofnet/website/website/app/../src/Picof/BaseBundle/Resources/public/components/requirejs/requirejs" contains invalid characters.") in HearsayRequireJSBundle::initialize.html.twig at line 46.
The fix is easy. The RequireJSHelper::src() method should first check if the file is supported by the rendering engine, and only then check if it exists. Not the other way around like it is doing now.
I'm going to do a pull request, if that's alright.
Actually it seems that the lines also need to be wrapped up in a try-catch block, because $this->engine->supports is throwing an InvalidArgumentException.
Hi there,
I'm using PHP templates instead of Twig templates, and when initializing RequireJS using
I get the following error:
Doesn't matter whether I use the default file
or a custom file
The fix is easy. The RequireJSHelper::src() method should first check if the file is supported by the rendering engine, and only then check if it exists. Not the other way around like it is doing now.
I'm going to do a pull request, if that's alright.
Thanks!