Answer the question
In order to leave comments, you need to log in
How to get rid of rendering problem?
I get an error
You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build
let tabs = [
{
name: "spending",
label: "Расходы",
component: {
template: `<div>
<div>{{ account.spending.month }} за месяц</div>
<div>{{ account.spending.weekend }} за неделю</div>
<div>{{ account.spending.today }} за день</div>
</div>`
}
},
{
name: "income",
label: "Доходы",
component: {
template: `
<div>
<div>{{ account.income.month }} за месяц</div>
<div>{{ account.income.weekend }} за неделю</div>
<div>{{ account.income.today }} за день</div>
</div>`
}
}
];
Answer the question
In order to leave comments, you need to log in
You are told that you are using a build where the template compiler is not available. Either pre-compile functions to render, or use a build with a compiler.
By default runtimeCompiler is set to false . Try enabling it in the config (vue.config.js).
module.exports = {
runtimeCompiler: true
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question