Skip to content

Error in local theme index.js should not be ignored and reported as "cannot resolve plugin ..." #1296

Closed
adamlaska/osmos-cosmos-sdk
#5
@shigma

Description

@shigma
  • I confirm that this is a issue rather than a question.

Bug report

Version

1.0.0-alpha.36

Steps to reproduce

.vuepress
├─ config.js
├─ theme
   ├─ index.js
   ├─ and other files ...

Assuming that an error was encounted in index.js, vuepress will leave a message cannot resolve plugin .../.vuepress/theme. But this behavior is rather strange and may mislead user with an indication that the theme is not found. Also, I think errors in local theme index file should not be simply ignored.

What is expected?

  • stop the process like an error was encounted in the config.js, or
  • provide a better warning like an error was encounted in ......

What is actually happening?

cannot resolve plugin .../.vuepress/theme

Other relevant information

  • Your OS: N/A
  • Node.js version: N/A
  • Browser version: N/A
  • Is this a global or local install? N/A
  • Which package manager did you use for the install? N/A

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions