0👍
You are right.
You won’t get the error until you navigate to that route that has the erroneous import path.
However, you have specified /login
for both login and register.
So if the register component import path is not correct you will get the error.
Here is a trivial implementation which demonstrates the same.
When you navigate to categories, you will see an error. But home, news and lists will work correctly.
Source:stackexchange.com