When I use Angular2, Webpackand ES6, everything works well, but the console shows the error above, I don’t know what is wrong with it.
Magazine
BaseException {
message: "Token must be defined!",
_originalException: undefined,
_originalStack: undefined,
_context: undefined,
stack: "Error: Token must be defined!
}
at new BaseExcep… at http://localhost:8080/dist/bundle.js:42471:32"
Preview

The code can be found at https://github.com/wxyyxc1992/angular2-es6-webpack-quickstart
source
share