You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There seems to be an issue, when including templates to scripts, that the templates are included with line breaks instead of single line on some environments.
On my development machine (Windows 7, PHP 5.4.14), the JST templates are correctly on one line, but on my production server (Debian Linux, PHP 5.4.4-14+deb7u11), they are not compiled to single line. This causes a JavaScript error Uncaught SyntaxError: Unexpected token ILLEGAL, because JavaScript does not allow breaking strings on multiple lines.
There seems to be an issue, when including templates to scripts, that the templates are included with line breaks instead of single line on some environments.
On my development machine (Windows 7, PHP 5.4.14), the JST templates are correctly on one line, but on my production server (Debian Linux, PHP 5.4.4-14+deb7u11), they are not compiled to single line. This causes a JavaScript error
Uncaught SyntaxError: Unexpected token ILLEGAL
, because JavaScript does not allow breaking strings on multiple lines.Examples:
dev (working):
prod (not working):
The asset pipeline settings are exactly the same on both envs (concat on, cache off).
The text was updated successfully, but these errors were encountered: