Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when add the head configuration like favicon in the .config.js, build error。 #2620

Closed
Jinwan5290 opened this issue Sep 21, 2020 · 1 comment

Comments

@Jinwan5290
Copy link

code as follows
module.exports = { base: '/docs/', title: 'mrapi', description: 'mrapi docs', head: ['link', { rel: 'icon', href: '/assets/favico.ico' }], ... }
and dev is ok
but when i build
The error occurred:
`
TypeError: undefined is not a function
at /Users/jinwan/Desktop/work-project/mrapi-docs/node_modules/@vuepress/core/lib/node/build/index.js:101:15
at Array.filter ()
at Build.render (/Users/jinwan/Desktop/work-project/mrapi-docs/node_modules/@vuepress/core/lib/node/build/index.js:101:8)
at async App.build (/Users/jinwan/Desktop/work-project/mrapi-docs/node_modules/@vuepress/core/lib/node/App.js:499:5)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

`
then I enter the source code to view
and see
image
in the debug
we can see there is no function called userHeadTags on the this instance
image
so how can solve this

@Jinwan5290
Copy link
Author

sorry I wrote it wrongly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant