This Is How Software Engineers Should Initially Learn
Learn depth-wise initially, and then you can go breadth-wise after you become a very established senior engineer.
If you don't know what you're passionate about, try a bunch of things out (go for breadth) until you find that passion.
After finding your passion, go deep on it.
You need to commit a long period of time to just 1 thing initially, so you start learning fundamentals as opposed to tech stack-specific tactical pieces.
You will eventually realize that all tech stacks are the same in many ways - All languages and tech stacks share a common set of fundamentals. You will not get to this state if you switch stacks every year.