Skip to content

must use entry when set title #2816

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

Closed
chiaweilee opened this issue Oct 26, 2018 · 1 comment
Closed

must use entry when set title #2816

chiaweilee opened this issue Oct 26, 2018 · 1 comment

Comments

@chiaweilee
Copy link
Contributor

Version

3.0.5

Node and OS info

Node 8.12

Steps to reproduce

// vue.config.js
module.exports = {
  pages: {
    index: {
      // entry: 'src/main.js' // Error if without 'entry'
      title: 'title here'
    }
  }
}

TypeError: Path must be a string. Received undefined
TypeError: Path must be a string. Received undefined

What is expected?

  • use default if entry set is undefined

What is actually happening?

  • Intent to change a title
  • Intent to use default entry without set
  • And an error told you that you must set entry
@haoqunjiang
Copy link
Member

haoqunjiang commented Oct 26, 2018

It is documented:

An object that specifies its entry, template, filename, title and chunks (all optional except entry);

Nonetheless, the error message could be improved by revising the vue.config.js options schema.

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

No branches or pull requests

2 participants