Static GitHub Issues

[1886] titleTemplate with function not working

prev: Regression? Error: Cannot find module 'pug'
next: Error running tests: Unexpected token: punc ()

The following in nuxt.config doesn't work as expected:

titleTemplate: titleChunk => titleChunk ? `${titleChunk} - Nuxt.js` : 'Nuxt.js',

I think it might have something to do with the options not being brought into vue-meta properly ie. maybe options are being cloned in a way which removes functions?

PR with failing test: #1961

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This bug report is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1691">#c1691</a>)</em></sub></div>