Skip to content

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

Closed
@ferm10n

Description

@ferm10n

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

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