That's not true. To pick the first example I was able to find:
In United States v. Lopez, ___ U.S.____, 115 S.Ct. 1624 (1995), the Supreme Court invalidated, as beyond the powers of Congress under the Commerce Clause, the Gun Free School Zone Act, which criminalized the possession of a firearm within 1000 feet of a school.
https://www.justice.gov/archives/jm/criminal-resource-manual...