Does it happen if your script tags are placed at bottom of view only, not a section.
Feb 9, 2019
3
Level 2
Error compiling template if there are <script></script> tags
In the Chrome inspector -- I see Error compiling template -- followed by a ton of errors if there are any script tags in my blade file.
For instance a file like below has no errors.
@extends('spark::layouts.app')
@section('content') @endsection
However, one like this: @extends('spark::layouts.app')
@section('content') @endsection
I see this error a lot:
- Templates should only be responsible for mapping the state to the UI. Avoid placing tags with side-effects in your templates, such as , as they will not be parsed.
How can I include scripts in a page without creating these issues?
Thanks a lot.
Please or to participate in this conversation.