Closed burakakca closed 2 years ago
Hi! I start all components names with a capital letter as it's more or less a Vue convention. Seems like it depends on the case sensitivity of your system. As I know Mac OS doesn't care about the capital letters ) Git doesn't trigger changes when I change case for the files.
OS : Linux Mint 20.2 Cinnamon
git mv
to change the capitalization in git repos
Again, should I rename all the components to start with a lowercase letter for better compatibility? 😅
same kind of thing for me on local when clicking on Topics icon, on linux Mint too
Vue seems to use PascalCase : necessarily two words with Capital
https://eslint.vuejs.org/rules/component-name-in-template-casing.html
https://eslint.vuejs.org/rules/multi-word-component-names.html
Looks like something goes wrong at unplugin-vue-components in vite build. May be some node parameters need to be set? I'm considering new ways to structure the components, need some time to figure it out. 🤓
Check if these parameters are in your vite.config.js
.
Components({
...
deep: true,
directoryAsNamespace: true,
...
})
same warnings with
Components({ ... deep: true, directoryAsNamespace: true, ... })
So there's some Linux file system feature to deal with. It's strange that nav-bar loads correctly though.
@scenaristeur @burakakca Guys! I think I've fixed this issue with full rearrangement of the components in 3b47c98ac103c46a39aa8437a3f199f2593ccb6c
I've turned the directory-as-namespace option for the unplugin-vue-components
plugin and renamed all the components to their full names. They are imported in index.js
files in each folder and then reexported from the root index.js
. Hope this should work for you.
P.S. Now there's also a component stories showcase enabled by Histoire gun-vue.js.org/components/ - I'll try to bring all of the components there for better documentation and examples. Stay tuned!
I will try it soon
Hello ,
When i click the chat button i get this error;
Problem because of some file first letter big or small.
I fix it for you .