0๐
โ
<script>
data: () => ({ // WITHOUT CONTEXT
sides: [
{
id: 1,
name: this.__('offers.front'), // THIS ERROR
},
{
id: 2,
name: this.__('offers.back'),
}
],
}),
</script>
Please update for
<script>
data() {
return {
sides: [
{
id: 1,
name: this.__('offers.front'),
}
]
}
}
</script>
Source:stackexchange.com