Preheat the oven and prep the pan: Preheat your oven to 375°F (190°C). Then spray a 9x13-inch baking pan with cooking spray and line it with parchment paper that is hanging off the sides so that the bars are easy to lift out once baked.
Begin the crumble dough: Whisk together the flour, granulated sugar, brown sugar, baking powder, and salt in a large mixing bowl. Now, add the cold cubed butter and use a pastry cutter or fork to blend until it’s well combined and crumbly. The butter must be cold for this step.
Add the egg and vanilla: In a small bowl, whisk the egg together with the vanilla extract. Then add it to the flour mixture and blend it in using a pastry cutter, wooden spoon or fork until the dough is crumbly. Try not to over blend. The butter needs to stay chunky for the crumble to have texture.
Form the crust: Transfer half of the dough to the prepared baking pan and press it firmly into the bottom to form the crust of the bars.
Make the blueberry filling: In another bowl, combine the fresh blueberries, cornstarch, lemon juice, and ½ cup of sugar in a separate bowl.
Add the blueberry layer: Evenly spread the blueberry mixture over the bottom crust layer in the baking pan.
Top with the crumb layer: Sprinkle the remaining crumb mixture evenly over the blueberry mixture using your fingers to crumble it up if necessary.
Bake the blueberry bars: Put the baking pan into the oven and bake the bars for about 45 minutes to an hour or until the top is golden brown in color.
Cool and serve: Once baked, allow the bars to completely cool in the pan before lifting them out to cut into blueberry squares to serve.