compile error when titleTemplate is a function

shalldie
0
shalldie
commented 6 months ago

Version

vue-cli

Reproduction link

https://github.com/shalldie/nuxt-koa-tpl-err

Steps to reproduce

  1. npm install

  2. npm run dev

What is expected ?

compile successfully and the title is ok.

What is actually happening?

compile error when titleTemplagte is a function

Additional comments?

after vue init nuxt-community/koa-template demo and npm intall

in nuxt.config.js, i add this:

  head: {
    title: '',
    titleTemplate: titleChunk => {
      // If undefined or blank then we don't need the hyphen
      return titleChunk ? `${titleChunk} - wqnmlgbd >_<#@!` : 'wqnmlgbd >_<#@!';
    },
  ...

when i try npm run dev, an error appears:

err.png

bug
0
shalldie
0
shalldie
commented 6 months ago

I found that , update the backpack-core to 0.7.0 can resolve this problem.

0
yccy0524
0
yccy0524
commented 13 days ago

after npm install, nuxt can not find main.js. why? how to handle this problem?

0
yccy0524
0
yccy0524
commented 13 days ago

_20190107211930

0
Informations
Bug Report โ€ข Open
#c28 - Created 6 months ago