BaseException in Angular2 with ES6 and Webpack

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

enter image description here

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

+4
source share

Source: https://habr.com/ru/post/1607304/


All Articles