bencodezen / vue-enterprise-boilerplate

An ever-evolving, very opinionated architecture and dev environment for new Vue SPA projects using Vue CLI.
7.78k stars 1.32k forks source link

app.vue cloning to App.vue in some environments #52

Closed JamesLarson closed 5 years ago

JamesLarson commented 6 years ago

using 'yarn dev --open' after initially cloning the repo resulted in this error.

ERROR Failed to compile with 1 errors This relative module was not found:

line 2 of src/main.js should read

import App from './App' (note the capitalized 'A' in ./App)

chrisvfritz commented 6 years ago

Interesting. The file app.vue is actually lower-cased, so this isn't a typo. You're saying that when you cloned it, the A was capitalized?

JamesLarson commented 6 years ago

Interesting indeed. I see in the repo here app.vue is lowercase as you say. After cloning it was uppercase on my machine. Not a big issue, but a strange one. At least the fix was simple.

chrisvfritz commented 6 years ago

Would you mind sharing the OS and git version you're using? And are you using any tools other than just git clone for the cloning? The closest I could find to this kind of problem is this long-closed issue with git-tfs.

JamesLarson commented 6 years ago

Mac OS 10.13.1 git 2.13.1

The issue seems to be that there was a file in our repo already named "App.vue" before cloning your repo. After renaming the file to "app.vue" then doing a new commit it would revert to "App.vue"

chrisvfritz commented 5 years ago

Since this didn't end up being an issue in the repo itself, I'm closing for now unless there's something we could do to avoid the issue. 🙂