PatrickJS-starter icon indicating copy to clipboard operation
PatrickJS-starter copied to clipboard

Cannot resolve component using 'About'. Is Async resolving broken?

Open rubiconvvv opened this issue 10 years ago • 4 comments

  • I'm submitting a bug [x] bug report
  • What is the current behavior? Fresh install git clone && npm install && npm start
hello `Home` component
about.component.ts:9`About` component loaded asynchronously
index.ts:4`Detail` bundle loaded asynchronously
browser_adapter.js:93EXCEPTION: Error: Uncaught (in promise): Cannot resolve component using 'About'.

If I edit app.routes manually and put Component object instead of 'Component's async resolving string it works.

  • Fresh clone
  • Angular version: 2.0.0-beta.rc5
  • Browser: [all]

rubiconvvv avatar Aug 22 '16 02:08 rubiconvvv

ya, async is broken in this repo until I move over the changes from https://github.com/angularclass/angular2-seed

PatrickJS avatar Aug 22 '16 02:08 PatrickJS

Oh, fresh software is changing rapidly :smile: Thanks for info.Is async routes resolving some kind of best practice for angular 2?

rubiconvvv avatar Aug 22 '16 03:08 rubiconvvv

@gdi2290 what's the ETA on the move?

fristys avatar Aug 22 '16 12:08 fristys

the repo is updated to rc5. but not with the changes from the seed so we're still using the old way to async load

PatrickJS avatar Aug 25 '16 17:08 PatrickJS