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

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

Closed
vatson opened this issue Jul 19, 2018 · 1 comment

Comments

@vatson
Copy link

vatson commented Jul 19, 2018

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.

@vatson
Copy link
Author

vatson commented Jul 19, 2018

We do not always need plugins that generate something. It can be a plugin that just tunes your webpack config or adds a useful command

vatson added a commit to vatson/vue-cli-plugin-ts-paths that referenced this issue Jul 19, 2018
vatson added a commit to vatson/vue-cli-plugin-ts-paths that referenced this issue Jul 19, 2018
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