[Vuejs]-Nuxt VueJS There are multiple modules with names that only differ in casing

0šŸ‘

The error happens if you are importing the same file with a difference in capitalization at different place.
e.g;- below I am importing same component ā€˜AppControlInputā€™ with a difference in ā€˜uiā€™ capitalization. In the first case, ā€˜uiā€™ is lowercase while in other ā€˜uiā€™ is uppercase.

  1. import AppControlInput from ā€œ~/components/ui/AppControlInputā€;
  2. import AppControlInput from ā€œ~/components/UI/AppControlInputā€;

Just make sure you have the same capitalization in every place you import component.

Leave a comment