I used email@example.com before and now I updated to angular-cli@webpack beta.11. After a lot of custom changes I got it to work.
The only thing is that now I can not debug my angular 2 app using webstorm and chrome debugger because I don't get any ts files using ng serve. With firstname.lastname@example.org it was very easy to debug my app using the Jetbrains Plugin.
How can I debug my angular 2 app with Webstorm and the Chrome Debugger using ng serve?
The new angular-cli version uses webpack which does not compile the ts files to an local directory like dist before. It uses some memory like approach.
But you can find the ts Files in the Chrome Developer Tools in the "Sources" tab and under the "webpack://" section:
After a long time of research and trying different variations of configuration I found a solution:
Just edit your Run/Debug Configuration in Webstorm/PHPStorm to following: Set your Remote URL Path of your project directory to
webpack:////Users/...FULL_PATH.. //on Mac OSX
webpack:///C:/...FULL_PATH.. //example on Windows
You can check your Path by going to http://localhost:4200/main.map and search for any ".ts" File. You can easily copy the path of this file and paste it to your IDE Configuration Dialog.
EDIT: Perhaps you need to map the path adding "/src" to your src folder too. Thanks @born2net