Angular 2 Router error, Route config should contain exactly one “component”, “loader”, or “redirectTo” property

后端 未结 8 1849
南笙
南笙 2021-01-18 05:35

This is my setup:

import {bootstrap} from \'angular2/platform/browser\';
import {Component} from \'angular2/core\';
import {LocationStrategy, APP_BASE_HREF,          


        
8条回答
  •  萌比男神i
    2021-01-18 06:26

    I had the same issue just now. This had to do with me creating a component, and Webpack didn't recognize it.

    After restarting Webpack the error went away..

提交回复
热议问题