Skip to content

The installation of preset throws an error "Failed to resolve plugin" when plugin doesn't have generator #1896

Closed
@vatson

Description

@vatson

Version

3.0.0-rc.5

Reproduction link

https://github.com/vatson/vue-cli-plugin-ts-paths/tree/759ed44c4499f37429556ee2e3c33b66d4278c3f

Steps to reproduce

  1. Create a plugin without generator
  2. Create a preset that uses the plugin without generator
  3. Try to install just created preset

What is expected?

Installation is successful.

What is actually happening?

Error: Failed to resolve plugin:


The error is thrown from https://github.com/vuejs/vue-cli/blob/dev/packages/%40vue/cli/lib/Creator.js#L312

I didn't dig deep but for some reasons the error isn't thrown when you try to install from local preset.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions