V
V
Vlad Volodko2019-12-09 17:06:49
Vue.js
Vlad Volodko, 2019-12-09 17:06:49

Why does VueJs say there are no components in the components folder?

Hello. Faced such a problem that on another machine (let's say on another laptop) my project does not start, writes that there are no dependencies. But it names some of my components
as dependencies joxi.ru/p270YVgtKeXE1A
Why does this error occur? What does it have to do with it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
marsdenden, 2019-12-20
@Ruless

seems to understand why the error occurs.
The key is in the difference between the names of the files P rofile.vue and p rofile.vue for Linux systems and completely ignoring this difference by Windows. When uploading a project to github, and then downloading it, the register flies, it makes sense to check the name of the file Profile.vue or profile.vue after downloading the project from github. There is no difference for Windows, but even under Windows, if you name the file with a capital letter and import it as import Profile from './profile', the assembly will break off.
Therefore, I strongly recommend checking the file names after downloading from the github, and if they all collapsed into lowercase, correct the import code everywhere and in the future not get carried away with CamelCase in file names, that is, at all.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question