You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 22, 2024. It is now read-only.
I had to patch injectableDefOrInjectorDefFactory because DefaultUrlSerializer is not an instance of Function
functioninjectableDefOrInjectorDefFactory(token){// Most tokens will have an injectable def directly on them, which specifies a factory directly.constinjectableDef=getInjectableDef(token);constfactory=injectableDef!==null ? injectableDef.factory : getFactoryDef(token);if(factory!==null){returnfactory;}// InjectionTokens should have an injectable def (ɵprov) and thus should be handled above.// If it's missing that, it's an error.if(tokeninstanceofInjectionToken){thrownewRuntimeError(204/* INVALID_INJECTION_TOKEN */,ngDevMode&&`Token ${stringify(token)} is missing a ɵprov definition.`);}// Undecorated types can sometimes be created if they have no constructor arguments.if(tokeninstanceofFunction||typeoftoken==="function"){<--patchreturngetUndecoratedInjectableFactory(token);}// There was no way to resolve a factory for this token.thrownewRuntimeError(204/* INVALID_INJECTION_TOKEN */,ngDevMode&&'unreachable');}
Proposal
Supposedly,
linkedomis faster thanjsdom. We should try it and see what happens, here's a repo.https://github.com/damienwebdev/angular-linkedom-universal
What is the summary of the proposal?
Faster, memory-leak-less SSR.
What is the proposal?
Replace
jsdomwithlinkedomIs there anything else we should know?
No.
Current Blockers
I'm adding them as I find them:
HTMLAnchorElementis missingpathnameWebReflection/linkedom#151runtime.js- https://github.com/damienwebdev/angular-linkedom-universalinjectableDefOrInjectorDefFactorybecauseDefaultUrlSerializeris not an instance ofFunction