vuejs/vue-cli

Files not copied properly from plugin

Open

#6334 opened on Mar 4, 2021

View on GitHub
 (0 comments) (0 reactions) (0 assignees)JavaScript (29,754 stars) (6,328 forks)batch import
bughelp wanted

Description

Version

4.5.11

Environment info

Environment Info:

  System:
    OS: Linux 4.19 Ubuntu 20.04.2 LTS (Focal Fossa)
    CPU: (16) x64 Intel(R) Core(TM) i9-10980HK CPU @ 2.40GHz
  Binaries:
    Node: 14.15.1 - /usr/local/bin/node
    Yarn: 1.22.5 - /usr/bin/yarn
    npm: 6.14.8 - /usr/local/bin/npm
  Browsers:
    Chrome: Not Found
    Firefox: Not Found
  npmGlobalPackages:
    @vue/cli: 4.5.10

Steps to reproduce

Run vue create my-project --preset assurance-maladie-digital/vue-cli-preset and let default values for all the questions.

When it's done, run yarn serve from the created folder.

What is expected?

All files are copied correctly.

What is actually happening?

Files (for example tsconfig.json and Home.vue) are not copied correctly and that generates errors on yarn serve.


Hi,

This issue is happening randomly on my PC (I'm using WSL), so I cannot provide a minimal reproduction, but seems to be consitent on MacOS.

I'm using this custom preset which invokes this custom plugin thats replaces the default files created by Vue CLI. I really don't known what's going on, maybe there is something wrong in my plugin or preset but since I cannot reproduce this consistently it's really hard to debug!

Contributor guide