Package not found when running ros2 launch

Solved it. There was a ‘/’ missing somewhere in package.xml and finally found it. However, why did the build command successfully worked if there was something wrong?