Skip to content
This repository has been archived by the owner on Jun 27, 2022. It is now read-only.

clicking on yt dash link throws error #5

Closed
BryanWilhite opened this issue Feb 28, 2019 · 4 comments
Closed

clicking on yt dash link throws error #5

BryanWilhite opened this issue Feb 28, 2019 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@BryanWilhite
Copy link
Owner

the Dashboard project hosting @songhay/player-video-you-tube lib is throwing an error when deep-linking into lib:

ERROR Error: Uncaught (in promise): TypeError: Array.prototype.map: argument is not a Function object TypeError: Array.prototype.map: argument is not a Function object at webpackAsyncContext (http://localhost:4200/main.js:345:2) at SystemJsNgModuleLoader.prototype.loadAndCompile (http://localhost:4200/vendor.js:83114:9) at SystemJsNgModuleLoader.prototype.load (http://localhost:4200/vendor.js:83106:9) at RouterConfigLoader.prototype.loadModuleFactory (http://localhost:4200/vendor.js:153224:13) at RouterConfigLoader.prototype.load (http://localhost:4200/vendor.js:153212:9) at Anonymous function (http://localhost:4200/vendor.js:152215:21) at MergeMapSubscriber.prototype._tryNext (http://localhost:4200/vendor.js:199943:13) at MergeMapSubscriber.prototype._next (http://localhost:4200/vendor.js:199933:13) at Subscriber.prototype.next (http://localhost:4200/vendor.js:194390:13) at Anonymous function (http://localhost:4200/vendor.js:196569:9)
@BryanWilhite BryanWilhite added the bug Something isn't working label Feb 28, 2019
@BryanWilhite BryanWilhite self-assigned this Feb 28, 2019
@BryanWilhite
Copy link
Owner Author

BryanWilhite commented Feb 28, 2019

a hosting app should be set up in the workspace to attempt to replicate the problem:

ng generate application client --routing=true --style=scss --dry-run=true

BryanWilhite added a commit that referenced this issue Feb 28, 2019
BryanWilhite added a commit that referenced this issue Feb 28, 2019
@BryanWilhite
Copy link
Owner Author

adding yt component:

ng g component components/yt --flat=false --module=app  --project client --style=scss --dry-run=true

BryanWilhite added a commit that referenced this issue Feb 28, 2019
@BryanWilhite
Copy link
Owner Author

deep-linking into lib works from client:

image

BryanWilhite added a commit that referenced this issue Feb 28, 2019
@BryanWilhite
Copy link
Owner Author

BryanWilhite commented Mar 1, 2019

@epelc shows us (in video form) that route modules in a library are kind of useless; instead we see that route information should come from the library:

image

image

in the library, we see that RouterModule is being used to load a component per default route:

image

i believe these are called entry components

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant