Toast hazelnuts in a 350º F oven on a baking sheet for 15 minutes or until skins split; turn the pan half-way through.
Transfer the nuts to a bowl and rub to remove skins. Chop the nuts coarsely.
Bring water to a boil in a large pan. Add beans. Cook until beans become bright green and crisp-tender, 2 minutes. Remove to a paper-towel-lined baking sheet and spread out to drain.
Heat oil in a large skillet over medium heat. Add the shallots. Cook the shallots for 5 minutes or until lightly browned. Add beans and stir-fry with shallots for 1-2 minutes. Add cranberries, hazelnuts, salt, and pepper.