Ros can’t find package

I was following turtlebot tutorial but it can’t find the package somehow. source ~/catkin_ws/devel/setup.bash does not solve the problem. But it turns out starting fresh by creating a new workspace seems to resolve the problem.