This is an error report.
Screenshot of the error

Error details
I am learning the course ROS2 Manipulation. While I am using colcon build, it is showing CMake error "CMake Error at CMakeLists.txt:6 (ament_target_dependencies): Unknown CMake command "ament_target_dependencies. While I am launching command "ros2 launch moveit2_scripts joint_space_trajectory.launch.py", it shows, moveit scripts not found. It is searching in home/users/simulations/