Giter Club home page Giter Club logo

Comments (11)

NetanelBasal avatar NetanelBasal commented on May 26, 2024 1

I think it's time to migrate to Transloco :)

Please, provide a minimal reproducible example.

from until-destroy.

arturovt avatar arturovt commented on May 26, 2024 1

@7.1.6 has been published. Could you try it out?

from until-destroy.

arturovt avatar arturovt commented on May 26, 2024

Please, provide a minimal reproducible example.

from until-destroy.

sithwarrior avatar sithwarrior commented on May 26, 2024

Just tried poking around it some more, and migrated to Transloco, to try it out, however Im faced with the same issue.

For some reason, when handling the template, the pipeRegistry is null, when i set the @UntilDestroy() decorator.

So now i get the following error:

`ERROR Error: Uncaught (in promise): Error: The pipe 'transloco' could not be found!

Error: The pipe 'transloco' could not be found!
at getPipeDef$1 (core.js:25172)
at ɵɵpipe (core.js:25139)
at ChecklistsPage_Template (template.html:6)
at executeTemplate (core.js:7632)
at renderView (core.js:7457)
at renderComponent (core.js:8649)
at renderChildComponents (core.js:7316)
at renderView (core.js:7482)
at ComponentFactory.push../node_modules/@angular/core/ivy_ngcc/fesm5/core.js.ComponentFactory.create (core.js:23068)
at ViewContainerRef.createComponent (core.js:10400)
at resolvePromise (zone.js:832)
at resolvePromise (zone.js:784)
at zone.js:894
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:421)
at Object.onInvokeTask (core.js:27950)
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:420)
at Zone.push../node_modules/zone.js/dist/zone.js.Zone.runTask (zone.js:188)
at drainMicroTaskQueue (zone.js:601)`

I'll try and make a reproducible example later today.

from until-destroy.

arturovt avatar arturovt commented on May 26, 2024

Something went wrong.... 😄

That would be great. I'll be able to test it out and help you.

from until-destroy.

NetanelBasal avatar NetanelBasal commented on May 26, 2024

@sithwarrior seems to work as expected. https://stackblitz.com/edit/ngneat-transloco-ivy

from until-destroy.

sithwarrior avatar sithwarrior commented on May 26, 2024

@sithwarrior seems to work as expected. https://stackblitz.com/edit/ngneat-transloco-ivy

Yes.. It also work, when I create a completely empty project from scratch, so Im having a hard time tracking this down.

In my current project, Whenever i use the @UntilDestroy() Decorator, the TViewConstructor inside core.js (Angular Core Ivy), for my page has an empty pipeRegistry, and errors out. I'll try and align all my dependecies, but they are Angular 9.1.1 etc. as your example..

So just ignorre me for now, I'll be back with a fix, or something you can reproduce :-)

from until-destroy.

LucasKubicki avatar LucasKubicki commented on May 26, 2024

Hi :),

I have the same kind of weird bug, im using angular 9 in ng serve with aot false.
I have no problem with aot true, or when i build.

If i go directly to a route like app/inbox in the url on a lazy load module with the main component of this route use UntilDestroy(), i have some bug like async pipe not found, *ngIf not declared ect.. like the commonModule don't be load. If im coming from another route no problem, if i delete @UntilDestroy no problem too, i will try to reproduce on a minimal project

from until-destroy.

LucasKubicki avatar LucasKubicki commented on May 26, 2024

https://github.com/LucasKubicki/bug-ngdestroy ng serve try to access http://localhost:4200/customers

Error: The pipe 'async' could not be found!
Error: The pipe 'async' could not be found!

If i delete UntilDestroy() its work fine.

Ty for your time.

@NetanelBasal

from until-destroy.

sithwarrior avatar sithwarrior commented on May 26, 2024

I have had no luck in creating a minimial reproducible version, bit through debugging, I can see that the order the anguler compiler works changes when @UntilDestroy is used to decorate.

When used the eepipe method is called before the template contaning the pipe, has been compiled in the create tview method.

from until-destroy.

sithwarrior avatar sithwarrior commented on May 26, 2024

Thx @arturovt and @NetanelBasal it works now, when updating to 7.1.6

from until-destroy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.