0

get 404 error

asked 2017-10-02 22:43:14 +0800

R00082 gravatar image R00082
3 1

updated 2017-10-03 11:04:42 +0800

cor3000 gravatar image cor3000
3484 1 7
ZK Team

I deploy the application as the document [Using Angular with ZK] get the following error zkangular2/hero/index.zhtml

GET unpkg.com/@angular/common@4.4.4/bundles/common.umd.js/http 404 () systemjs.config.web.js:99 No AppModule; making a bare-bones, default AppModule zone.js:355 Unhandled Promise rejection: Template parse errors: 'router-outlet' is not a known element: 1. If 'router-outlet' is an Angular component, then verify that it is part of this module. 2. If 'router-outlet' is a Web Component then add 'CUSTOMELEMENTSSCHEMA' to the '@NgModule.schemas' of this component to suppress this message. (" Heroes </nav> [ERROR ->]<router-outlet></router-outlet> "): AppModule/AppComponent.html@6:4 ; Zone: <root> ; Task: Promise.then ; Value: Error: Template parse errors: 'router-outlet' is not a known element: 1. If 'router-outlet' is an Angular component, then verify that it is part of this module. 2. If 'router-outlet' is a Web Component then add 'CUSTOMELEMENTSSCHEMA' to the

'@NgModule.schemas' of this component to suppress this message. ("
      <a routerLink="/heroes" routerLinkActive="active">Heroes</a>
    </nav>
    [ERROR ->]<router-outlet></router-outlet>
  "): AppModule/AppComponent.html@6:4
    at syntaxError (compiler.es5.js:1699)
    at TemplateParser.parse (compiler.es5.js:12940)
    at JitCompiler._compileTemplate (compiler.es5.js:27138)
    at eval (compiler.es5.js:27053)
    at Set.forEach (<anonymous>)
    at JitCompiler._compileComponents (compiler.es5.js:27053)
    at eval (compiler.es5.js:26942)
    at ZoneDelegate.invoke (zone.js:203)
    at Zone.run (zone.js:96)
    at zone.js:462 Error: Template parse errors:
'router-outlet' is not a known element:
  1. If 'router-outlet' is an Angular component, then verify that it is part of this module.

    1. If 'router-outlet' is a Web Component then add 'CUSTOMELEMENTSSCHEMA' to the '@NgModule.schemas' of this component to suppress this message. (" Heroes </nav> [ERROR ->]<router-outlet></router-outlet> "): ng:///AppModule/AppComponent.html@6:4 at syntaxError (unpkg.com/@angular/compiler/bundles/compiler.umd.js:1729:34) at TemplateParser.parse (unpkg.com/@angular/compiler/bundles/compiler.umd.js:12972:19) at JitCompiler.compileTemplate (//unpkg.com/@angular/compiler/bundles/compiler.umd.js:27168:39) at eval (//unpkg.com/@angular/compiler/bundles/compiler.umd.js:27087:62) at Set.forEach (<anonymous>) at JitCompiler.compileComponents (//unpkg.com/@angular/compiler/bundles/compiler.umd.js:27087:19) at eval (//unpkg.com/@angular/compiler/bundles/compiler.umd.js:26974:19) at ZoneDelegate.invoke (/unpkg.com/zone.js@0.6.25/dist/zone.js:203:28) at Zone.run (//unpkg.com/zone.js@0.6.25/dist/zone.js:96:43) at //unpkg.com/zone.js@0.6.25/dist/zone.js:462:57
delete flag offensive retag edit
Be the first one to reply this discussion!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2017-10-02 22:43:14 +0800

Seen: 8 times

Last updated: Oct 03