Answer the question
In order to leave comments, you need to log in
Why is there a huge error in the console, although the script is running?
There is a so-called main layout and scripts are connected at the end of it
{{ javascript_include('js/vue.js')}}
{{ javascript_include('js/scripts.js')}}
var app = new Vue({
el: '#app',
delimiters: ['${', '}'],
data: {
message: 'Привет, Vue!'
}
});
[Vue warn]: Error compiling template:
....
....
</div>
</div>
</div>
<script type="text/javascript" src="/public/js/vendor.js"></script>
<script type="text/javascript" src="/public/js/bundle.js"></script>
<script type="text/javascript" src="/public/js/vue.js"></script>
<script type="text/javascript" src="/public/js/scripts.js"></script></div>
- Templates should only be responsible for mapping the state to the UI. Avoid placing tags with side-effects in your templates, such as <script>, as they will not be parsed.
- Templates should only be responsible for mapping the state to the UI. Avoid placing tags with side-effects in your templates, such as <script>, as they will not be parsed.
- Templates should only be responsible for mapping the state to the UI. Avoid placing tags with side-effects in your templates, such as <script>, as they will not be parsed.
- Templates should only be responsible for mapping the state to the UI. Avoid placing tags with side-effects in your templates, such as <script>, as they will not be parsed.
(found in <Root>)
Answer the question
In order to leave comments, you need to log in
In the warning, it seems to be clearly written that you should not use the script tag in the template so that it will not be steamed to avoid unwanted effects.
I don't understand what it means and how to solve it.Translate error text for you?
immediately there was a rendered pagessr
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question