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

Plugin GeneratorAPI breaks if template file contents match an existing file name #5920

Closed
ferm10n opened this issue Oct 2, 2020 · 0 comments

Comments

@ferm10n
Copy link
Contributor

ferm10n commented Oct 2, 2020

Version

4.5.6

Reproduction link

https://github.com/ferm10n/bug-reproduction-vue-cli-generator

Environment info

Environment Info:

  System:
    OS: Linux 5.4 Ubuntu 18.04.4 LTS (Bionic Beaver)
    CPU: (8) x64 Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz
  Binaries:
    Node: 12.16.3 - ~/.nvm/versions/node/v12.16.3/bin/node
    Yarn: Not Found
    npm: 6.14.4 - ~/.nvm/versions/node/v12.16.3/bin/npm
  Browsers:
    Chrome: 80.0.3987.149
    Firefox: Not Found
  npmPackages:
    @vue/cli-overlay:  4.5.6 
    @vue/cli-plugin-router:  4.5.6 
    @vue/cli-plugin-vuex:  4.5.6 
    @vue/cli-service: ~4.5.0 => 4.5.6 
    @vue/cli-shared-utils:  4.5.6 
    @vue/component-compiler-utils:  3.2.0 
    @vue/preload-webpack-plugin:  1.1.2 
    @vue/web-component-wrapper:  1.2.0 
    vue: ^2.6.11 => 2.6.12 
    vue-cli-plugin-sample: file:sample-plugin => 1.0.0 
    vue-hot-reload-api:  2.3.4 
    vue-loader:  15.9.3 (16.0.0-beta.8)
    vue-style-loader:  4.1.2 
    vue-template-compiler: ^2.6.11 => 2.6.12 
    vue-template-es2015-compiler:  1.9.1 
  npmGlobalPackages:
    @vue/cli: 4.5.6

Steps to reproduce

  • npm i -g @vue/cli
  • npm ci
  • vue invoke vue-cli-plugin-sample

What is expected?

The template from the vue cli plugin is rendered.

What is actually happening?

node_modules is attempted to be read as if it was a file


See https://github.com/ferm10n/bug-reproduction-vue-cli-generator/blob/master/README.md for proposed fix

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