-
Notifications
You must be signed in to change notification settings - Fork 357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in tdLoading with Circle Overlay: Cannot read property 'unsubscribe' of undefined Error #396
Comments
i forgot to mention that my Login Component is lazy loaded. |
So, does this happen as it loads? or when exactly does it happen? Trying to see if we can replicate it. |
I have implemented to load on when i click on login button, but i can even
load login page its giving me this error.
Error is accuring on login page loading.
…On 03-Mar-2017 9:10 AM, "Ed Morales" ***@***.***> wrote:
So, does this happen as it loads? or when exactly does it happen?
Trying to see if we can replicate it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#396 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEx2_YGZQ7RWppiklJNloaAvNjh9SBgcks5rh4uzgaJpZM4MPjsF>
.
|
Tried lazy loading it.. and still cant replicate it. Any chance you can post the |
Okay wait let me think what can i do...
…On 03-Mar-2017 9:38 AM, "Ed Morales" ***@***.***> wrote:
Tried lazy loading it.. and still cant replicate it.
Any chance you can post the html? or a link to the repo?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#396 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEx2_d_TiMnCq947KSKM5KXrICFn_7Fyks5rh5JSgaJpZM4MPjsF>
.
|
i have created gist please check it. if you need anything please let me know. https://gist.github.com/imVinayPandya/a2696802d8112a9ffdf9f4e0cbf24563 |
@emoralesb05 sorry in gist it is not "cirlucar" and "overlay" please check logint.component.html again, i have updated gist. |
Awesome, manage to replicate it. Now the hard part is actually finding the issue (which seems has something to do with ReactiveForms) Edit: or.. tdMediaToggle |
Okay let me know if i can do anything.
…On 03-Mar-2017 12:06 PM, "Ed Morales" ***@***.***> wrote:
Awesome, manage to replicate it. Now the hard part is actually finding the
issue (which seems has something to do with ReactiveForms)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#396 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEx2_V-ZIA55CF7Y5Kv8DbaMX-P3Iggwks5rh7TogaJpZM4MPjsF>
.
|
Wow haha okay, yes found the problem. It appears that But since we dont check if the subscription has been craeted when trying to unsubscribe.. it throws that error. Creating a PR to fix it real quick, for now you can just remove the use of |
#401 will fix this. Thanks for the gist! Really helped me find the root cause. |
i am not using overlay effect, using linear for now. but is ther any workaround? so, i can use overlay effect with circular type. also in docs, i am little bit confused that it is "circular" or "circle". inside your tdLoading directive it is "circular" i think. and in docs is there is circle as type: https://teradata.github.io/covalent/#/components/loading and you can also see that in your doc circular loading with overlay effect is working. |
Yeah, just remove And yes, its a typo.. its supposed to be Its a problem introduced by using so just change |
Fixed when merging #401 |
Do you want to request a feature or report a bug?
Bug
Bug Report
when i am using overlay strategy in loading, i am getting error please go down to see full error details, but with replace strategy its working fine.
i have dive into Covalent doc code in github repo, but i didn't found anything. my code is looked like this.
and on login click
this._loadingService.register('overlayStarSyntax');
and on error / response
this._loadingService.resolve('overlayStarSyntax');
Which version of Angular and Material, and which browser and OS does this issue affect?
my package.json is looked like this
Other information
Uncaught (in promise): Error: Error in ./LoginComponent class LoginComponent - inline template:49:14 caused by: Cannot read property 'unsubscribe' of undefined Error: Error in ./LoginComponent class LoginComponent - inline template:49:14 caused by: Cannot read property 'unsubscribe' of undefined at ViewWrappedError.ZoneAwareError (http://localhost:4200/polyfills.bundle.js:25987:33) at ViewWrappedError.BaseError [as constructor] (http://localhost:4200/vendor.bundle.js:8134:16) at ViewWrappedError.WrappedError [as constructor] (http://localhost:4200/vendor.bundle.js:8199:16) at new ViewWrappedError (http://localhost:4200/vendor.bundle.js:108745:16) at View_LoginComponent1.DebugAppView._rethrowWithContext (http://localhost:4200/vendor.bundle.js:140449:23) at View_LoginComponent1.DebugAppView.destroy (http://localhost:4200/vendor.bundle.js:140408:18) at ViewContainerRef_.remove (http://localhost:4200/vendor.bundle.js:109469:14) at ViewContainerRef_.clear (http://localhost:4200/vendor.bundle.js:109490:18) at TdLoadingFactory.createOverlayComponent (http://localhost:4200/vendor.bundle.js:125115:26) at TdLoadingService.createComponent (http://localhost:4200/vendor.bundle.js:79923:72) at TdLoadingDirective._registerComponent (http://localhost:4200/vendor.bundle.js:157957:53) at TdLoadingDirective.ngOnInit (http://localhost:4200/vendor.bundle.js:157936:14) at Wrapper_TdLoadingDirective.ngDoCheck (/CovalentLoadingModule/TdLoadingDirective/wrapper.ngfactory.js:94:53) at CompiledTemplate.proxyViewClass.View_LoginComponent0.detectChangesInternal (/LoginModule/LoginComponent/component.ngfactory.js:976:32) at CompiledTemplate.proxyViewClass.AppView.detectChanges (http://localhost:4200/vendor.bundle.js:140224:14) at ViewWrappedError.ZoneAwareError (http://localhost:4200/polyfills.bundle.js:25987:33) at ViewWrappedError.BaseError [as constructor] (http://localhost:4200/vendor.bundle.js:8134:16) at ViewWrappedError.WrappedError [as constructor] (http://localhost:4200/vendor.bundle.js:8199:16) at new ViewWrappedError (http://localhost:4200/vendor.bundle.js:108745:16) at View_LoginComponent1.DebugAppView._rethrowWithContext (http://localhost:4200/vendor.bundle.js:140449:23) at View_LoginComponent1.DebugAppView.destroy (http://localhost:4200/vendor.bundle.js:140408:18) at ViewContainerRef_.remove (http://localhost:4200/vendor.bundle.js:109469:14) at ViewContainerRef_.clear (http://localhost:4200/vendor.bundle.js:109490:18) at TdLoadingFactory.createOverlayComponent (http://localhost:4200/vendor.bundle.js:125115:26) at TdLoadingService.createComponent (http://localhost:4200/vendor.bundle.js:79923:72) at TdLoadingDirective._registerComponent (http://localhost:4200/vendor.bundle.js:157957:53) at TdLoadingDirective.ngOnInit (http://localhost:4200/vendor.bundle.js:157936:14) at Wrapper_TdLoadingDirective.ngDoCheck (/CovalentLoadingModule/TdLoadingDirective/wrapper.ngfactory.js:94:53) at CompiledTemplate.proxyViewClass.View_LoginComponent0.detectChangesInternal (/LoginModule/LoginComponent/component.ngfactory.js:976:32) at CompiledTemplate.proxyViewClass.AppView.detectChanges (http://localhost:4200/vendor.bundle.js:140224:14) at resolvePromise (http://localhost:4200/polyfills.bundle.js:25672:31) [angular] at resolvePromise (http://localhost:4200/polyfills.bundle.js:25648:17) [angular] at http://localhost:4200/polyfills.bundle.js:25708:17 [angular] at Object.onInvokeTask (http://localhost:4200/vendor.bundle.js:57952:37) [angular] at ZoneDelegate.invokeTask (http://localhost:4200/polyfills.bundle.js:25391:36) [angular] at Zone.runTask (http://localhost:4200/polyfills.bundle.js:25195:47) [<root> => angular] at drainMicroTaskQueue (http://localhost:4200/polyfills.bundle.js:25558:35) [<root>]
The text was updated successfully, but these errors were encountered: