A
A
Alex2020-05-29 09:51:36
Vue.js
Alex, 2020-05-29 09:51:36

How to fix error in vue.config.js configuration?

Good afternoon I use Vue CLI,
vue.config.js

module.exports = {
    publicPath: '',
    css: {
        extract: false
    },
    pages: {
        index: {
            title: 'Index Page',
        }
    }
}


I want to change the title- build error

ERROR  Invalid options in vue.config.js: child "pages" fails because [child "index" fails because ["index" must be a string, "index" must be an array, child "entry" fails because ["entry" is required]]]

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aetae, 2020-05-29
@astrodeep

child "entry" fails because ["entry" is required]]]

If you use pages, then it entryis a required parameter. This is the entry point for the page. Usually:"src/main.js".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question