Open Closed

Angular fails to compile after update to v9.1 #8958


User avatar
0
rshapiro created

Hi,

We completed the update from v8.3 to v9.1 in order to get some fixes to issues that are supposed to be corrected in v9. But, when issueing the yarn start command a repeated exception is produced. The entire set of exceptions is too large for the VS code terminal buffer but it's the same exception repeated over and over for different volo modules and I've included one of them below. The process seems to successfully get through the building phase but seems to fail shortly after getting into the sealing phase.

After a quick search online I found this forum post which suggests that v9.1 is actually supposed to correct this issue but then I also found this issue in your github which outlines the same issue as us except they're using Angular 19 and we're on Angular 18.

Any help would be greatly appreciated.

  • ABP Framework version: v9.1.0
  • UI Type: Angular
  • Database System: EF Core (SQL Serve)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace: see below
  • Steps to reproduce the issue: Yarn start

./node_modules/@volo/ngx-lepton-x.core/fesm2022/volo-ngx-lepton-x.core.mjs:2828:9-30 - Error: export 'provideAppInitializer' (imported as 'provideAppInitializer') was not found in '@angular/core' (possible exports: ANIMATION_MODULE_TYPE, APP_BOOTSTRAP_LISTENER, APP_ID, APP_INITIALIZER, AfterRenderPhase, ApplicationInitStatus, ApplicationModule, ApplicationRef, Attribute, COMPILER_OPTIONS, CSP_NONCE, CUSTOM_ELEMENTS_SCHEMA, ChangeDetectionStrategy, ChangeDetectorRef, Compiler, CompilerFactory, Component, ComponentFactory, ComponentFactoryResolver, ComponentRef, ContentChild, ContentChildren, DEFAULT_CURRENCY_CODE, DebugElement, DebugEventListener, DebugNode, DefaultIterableDiffer, DestroyRef, Directive, ENVIRONMENT_INITIALIZER, ElementRef, EmbeddedViewRef, EnvironmentInjector, ErrorHandler, EventEmitter, ExperimentalPendingTasks, HOST_TAG_NAME, Host, HostAttributeToken, HostBinding, HostListener, INJECTOR, Inject, InjectFlags, Injectable, InjectionToken, Injector, Input, IterableDiffers, KeyValueDiffers, LOCALE_ID, MissingTranslationStrategy, ModuleWithComponentFactories, NO_ERRORS_SCHEMA, NgModule, NgModuleFactory, NgModuleRef, NgProbeToken, NgZone, Optional, Output, OutputEmitterRef, PACKAGE_ROOT_URL, PLATFORM_ID, PLATFORM_INITIALIZER, Pipe, PlatformRef, Query, QueryList, Renderer2, RendererFactory2, RendererStyleFlags2, Sanitizer, SecurityContext, Self, SimpleChange, SkipSelf, TRANSLATIONS, TRANSLATIONS_FORMAT, TemplateRef, Testability, TestabilityRegistry, TransferState, Type, VERSION, Version, ViewChild, ViewChildren, ViewContainerRef, ViewEncapsulation, ViewRef, afterNextRender, afterRender, asNativeElements, assertInInjectionContext, assertNotInReactiveContext, assertPlatform, booleanAttribute, computed, contentChild, contentChildren, createComponent, createEnvironmentInjector, createNgModule, createNgModuleRef, createPlatform, createPlatformFactory, defineInjectable, destroyPlatform, effect, enableProdMode, forwardRef, getDebugNode, getModuleFactory, getNgModuleById, getPlatform, importProvidersFrom, inject, input, isDevMode, isSignal, isStandalone, makeEnvironmentProviders, makeStateKey, mergeApplicationConfig, model, numberAttribute, output, platformCore, provideExperimentalCheckNoChangesForDebug, provideExperimentalZonelessChangeDetection, provideZoneChangeDetection, reflectComponentType, resolveForwardRef, runInInjectionContext, setTestabilityGetter, signal, untracked, viewChild, viewChildren, ษตALLOW_MULTIPLE_PLATFORMS, ษตAfterRenderEventManager, ษตCONTAINER_HEADER_OFFSET, ษตChangeDetectionScheduler, ษตChangeDetectionSchedulerImpl, ษตComponentFactory, ษตConsole, ษตDEFAULT_LOCALE_ID, ษตDEFER_BLOCK_CONFIG, ษตDEFER_BLOCK_DEPENDENCY_INTERCEPTOR, ษตDeferBlockBehavior, ษตDeferBlockState, ษตEffectScheduler, ษตGLOBAL_EVENT_DELEGATION, ษตIMAGE_CONFIG, ษตIMAGE_CONFIG_DEFAULTS, ษตINJECTOR_SCOPE, ษตINPUT_SIGNAL_BRAND_WRITE_TYPE, ษตINTERNAL_APPLICATION_ERROR_HANDLER, ษตIS_HYDRATION_DOM_REUSE_ENABLED, ษตJSACTION_EVENT_CONTRACT, ษตLContext, ษตLifecycleHooksFeature, ษตLocaleDataIndex, ษตNG_COMP_DEF, ษตNG_DIR_DEF, ษตNG_ELEMENT_ID, ษตNG_INJ_DEF, ษตNG_MOD_DEF, ษตNG_PIPE_DEF, ษตNG_PROV_DEF, ษตNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR, ษตNO_CHANGE, ษตNgModuleFactory, ษตNoopNgZone, ษตPROVIDED_NG_ZONE, ษตPendingTasks, ษตReflectionCapabilities, ษตRender3ComponentFactory, ษตRender3ComponentRef, ษตRender3NgModuleRef, ษตRuntimeError, ษตSSR_CONTENT_INTEGRITY_MARKER, ษตTESTABILITY, ษตTESTABILITY_GETTER, ษตUSE_RUNTIME_DEPS_TRACKER_FOR_JIT, ษตViewRef, ษตXSS_SECURITY_URL, ษตZONELESS_ENABLED, ษต_sanitizeHtml, ษต_sanitizeUrl, ษตallowSanitizationBypassAndThrow, ษตannotateForHydration, ษตbypassSanitizationTrustHtml, ษตbypassSanitizationTrustResourceUrl, ษตbypassSanitizationTrustScript, ษตbypassSanitizationTrustStyle, ษตbypassSanitizationTrustUrl, ษตclearResolutionOfComponentResourcesQueue, ษตcompileComponent, ษตcompileDirective, ษตcompileNgModule, ษตcompileNgModuleDefs, ษตcompileNgModuleFactory, ษตcompilePipe, ษตconvertToBitFlags, ษตcreateInjector, ษตdefaultIterableDiffers, ษตdefaultKeyValueDiffers, ษตdepsTracker, ษตdetectChangesInViewIfRequired, ษตdevModeEqual, ษตfindLocaleData, ษตflushModuleScopingQueueAsMuchAsPossible, ษตformatRuntimeError, ษตgenerateStandaloneInDeclarationsError, ษตgetAsyncClassMetadataFn, ษตgetDebugNode, ษตgetDeferBlocks, ษตgetDirectives, ษตgetHostElement, ษตgetInjectableDef, ษตgetLContext, ษตgetLocaleCurrencyCode, ษตgetLocalePluralCase, ษตgetOutputDestroyRef, ษตgetSanitizationBypassType, ษตgetUnknownElementStrictMode, ษตgetUnknownPropertyStrictMode, ษตglobal, ษตinjectChangeDetectorRef, ษตinternalAfterNextRender, ษตinternalCreateApplication, ษตinternalProvideZoneChangeDetection, ษตisBoundToModule, ษตisComponentDefPendingResolution, ษตisEnvironmentProviders, ษตisInjectable, ษตisNgModule, ษตisPromise, ษตisSubscribable, ษตnoSideEffects, ษตpatchComponentDefWithScope, ษตperformanceMarkFeature, ษตprovideGlobalEventDelegation, ษตqueueStateUpdate, ษตreadHydrationInfo, ษตregisterLocaleData, ษตrenderDeferBlockState, ษตresetCompiledComponents, ษตresetJitOptions, ษตresolveComponentResources, ษตrestoreComponentResolutionQueue, ษตsetAllowDuplicateNgModuleIdsForTest, ษตsetAlternateWeakRefImpl, ษตsetClassDebugInfo, ษตsetClassMetadata, ษตsetClassMetadataAsync, ษตsetCurrentInjector, ษตsetDocument, ษตsetInjectorProfilerContext, ษตsetLocaleId, ษตsetUnknownElementStrictMode, ษตsetUnknownPropertyStrictMode, ษตstore, ษตstringify, ษตtransitiveScopesFor, ษตtriggerResourceLoading, ษตtruncateMiddle, ษตunregisterLocaleData, ษตunwrapSafeValue, ษตunwrapWritableSignal, ษตwhenStable, ษตwithDomHydration, ษตwithEventReplay, ษตwithI18nSupport, ษตษตCopyDefinitionFeature, ษตษตFactoryTarget, ษตษตHostDirectivesFeature, ษตษตInheritDefinitionFeature, ษตษตInputTransformsFeature, ษตษตNgOnChangesFeature, ษตษตProvidersFeature, ษตษตStandaloneFeature, ษตษตadvance, ษตษตattribute, ษตษตattributeInterpolate1, ษตษตattributeInterpolate2, ษตษตattributeInterpolate3, ษตษตattributeInterpolate4, ษตษตattributeInterpolate5, ษตษตattributeInterpolate6, ษตษตattributeInterpolate7, ษตษตattributeInterpolate8, ษตษตattributeInterpolateV, ษตษตclassMap, ษตษตclassMapInterpolate1, ษตษตclassMapInterpolate2, ษตษตclassMapInterpolate3, ษตษตclassMapInterpolate4, ษตษตclassMapInterpolate5, ษตษตclassMapInterpolate6, ษตษตclassMapInterpolate7, ษตษตclassMapInterpolate8, ษตษตclassMapInterpolateV, ษตษตclassProp, ษตษตcomponentInstance, ษตษตconditional, ษตษตcontentQuery, ษตษตcontentQuerySignal, ษตษตdeclareLet, ษตษตdefer, ษตษตdeferEnableTimerScheduling, ษตษตdeferOnHover, ษตษตdeferOnIdle, ษตษตdeferOnImmediate, ษตษตdeferOnInteraction, ษตษตdeferOnTimer, ษตษตdeferOnViewport, ษตษตdeferPrefetchOnHover, ษตษตdeferPrefetchOnIdle, ษตษตdeferPrefetchOnImmediate, ษตษตdeferPrefetchOnInteraction, ษตษตdeferPrefetchOnTimer, ษตษตdeferPrefetchOnViewport, ษตษตdeferPrefetchWhen, ษตษตdeferWhen, ษตษตdefineComponent, ษตษตdefineDirective, ษตษตdefineInjectable, ษตษตdefineInjector, ษตษตdefineNgModule, ษตษตdefinePipe, ษตษตdirectiveInject, ษตษตdisableBindings, ษตษตelement, ษตษตelementContainer, ษตษตelementContainerEnd, ษตษตelementContainerStart, ษตษตelementEnd, ษตษตelementStart, ษตษตenableBindings, ษตษตgetComponentDepsFactory, ษตษตgetCurrentView, ษตษตgetInheritedFactory, ษตษตhostProperty, ษตษตi18n, ษตษตi18nApply, ษตษตi18nAttributes, ษตษตi18nEnd, ษตษตi18nExp, ษตษตi18nPostprocess, ษตษตi18nStart, ษตษตinject, ษตษตinjectAttribute, ษตษตinvalidFactory, ษตษตinvalidFactoryDep, ษตษตlistener, ษตษตloadQuery, ษตษตnamespaceHTML, ษตษตnamespaceMathML, ษตษตnamespaceSVG, ษตษตnextContext, ษตษตngDeclareClassMetadata, ษตษตngDeclareClassMetadataAsync, ษตษตngDeclareComponent, ษตษตngDeclareDirective, ษตษตngDeclareFactory, ษตษตngDeclareInjectable, ษตษตngDeclareInjector, ษตษตngDeclareNgModule, ษตษตngDeclarePipe, ษตษตpipe, ษตษตpipeBind1, ษตษตpipeBind2, ษตษตpipeBind3, ษตษตpipeBind4, ษตษตpipeBindV, ษตษตprojection, ษตษตprojectionDef, ษตษตproperty, ษตษตpropertyInterpolate, ษตษตpropertyInterpolate1, ษตษตpropertyInterpolate2, ษตษตpropertyInterpolate3, ษตษตpropertyInterpolate4, ษตษตpropertyInterpolate5, ษตษตpropertyInterpolate6, ษตษตpropertyInterpolate7, ษตษตpropertyInterpolate8, ษตษตpropertyInterpolateV, ษตษตpureFunction0, ษตษตpureFunction1, ษตษตpureFunction2, ษตษตpureFunction3, ษตษตpureFunction4, ษตษตpureFunction5, ษตษตpureFunction6, ษตษตpureFunction7, ษตษตpureFunction8, ษตษตpureFunctionV, ษตษตqueryAdvance, ษตษตqueryRefresh, ษตษตreadContextLet, ษตษตreference, ษตษตregisterNgModuleType, ษตษตrepeater, ษตษตrepeaterCreate, ษตษตrepeaterTrackByIdentity, ษตษตrepeaterTrackByIndex, ษตษตresetView, ษตษตresolveBody, ษตษตresolveDocument, ษตษตresolveWindow, ษตษตrestoreView, ษตษตsanitizeHtml, ษตษตsanitizeResourceUrl, ษตษตsanitizeScript, ษตษตsanitizeStyle, ษตษตsanitizeUrl, ษตษตsanitizeUrlOrResourceUrl, ษตษตsetComponentScope, ษตษตsetNgModuleScope, ษตษตstoreLet, ษตษตstyleMap, ษตษตstyleMapInterpolate1, ษตษตstyleMapInterpolate2, ษตษตstyleMapInterpolate3, ษตษตstyleMapInterpolate4, ษตษตstyleMapInterpolate5, ษตษตstyleMapInterpolate6, ษตษตstyleMapInterpolate7, ษตษตstyleMapInterpolate8, ษตษตstyleMapInterpolateV, ษตษตstyleProp, ษตษตstylePropInterpolate1, ษตษตstylePropInterpolate2, ษตษตstylePropInterpolate3, ษตษตstylePropInterpolate4, ษตษตstylePropInterpolate5, ษตษตstylePropInterpolate6, ษตษตstylePropInterpolate7, ษตษตstylePropInterpolate8, ษตษตstylePropInterpolateV, ษตษตsyntheticHostListener, ษตษตsyntheticHostProperty, ษตษตtemplate, ษตษตtemplateRefExtractor, ษตษตtext, ษตษตtextInterpolate, ษตษตtextInterpolate1, ษตษตtextInterpolate2, ษตษตtextInterpolate3, ษตษตtextInterpolate4, ษตษตtextInterpolate5, ษตษตtextInterpolate6, ษตษตtextInterpolate7, ษตษตtextInterpolate8, ษตษตtextInterpolateV, ษตษตtrustConstantHtml, ษตษตtrustConstantResourceUrl, ษตษตtwoWayBindingSet, ษตษตtwoWayListener, ษตษตtwoWayProperty, ษตษตvalidateIframeAttribute, ษตษตviewQuery, ษตษตviewQuerySignal)


8 Answer(s)
  • User Avatar
    0
    enisn created
    Support Team .NET Developer

    Hi,

    Out angular team will help you on this topic.

    Until then, can I ask have you cleaned node_modules and remove yarn.lock/packages.lock file and install all the packages cleanly?

  • User Avatar
    0
    sumeyye.kurtulus created
    Support Team Angular Expert

    Hello,

    Since then ABP 9.1 uses Angular v19, you will need to update your application accordingly. You can follow this guide https://angular.dev/update-guide

    Thank you for your cooperation.

  • User Avatar
    0
    rshapiro created

    Hi,

    Out angular team will help you on this topic.

    Until then, can I ask have you cleaned node_modules and remove yarn.lock/packages.lock file and install all the packages cleanly?

    Yes, I had cleared the node_modules but not the yarn.lock file.

  • User Avatar
    0
    rshapiro created

    Hello,

    Since then ABP 9.1 uses Angular v19, you will need to update your application accordingly. You can follow this guide https://angular.dev/update-guide

    Thank you for your cooperation.

    Hi,

    Are you certain that updating to Angular 19 will correct this? One of the other forum posts I linked in my initial question indicates they had this issue even with Angular 19.

  • User Avatar
    0
    rshapiro created

    Hello,

    Since then ABP 9.1 uses Angular v19, you will need to update your application accordingly. You can follow this guide
    https://angular.dev/update-guide

    Thank you for your cooperation.

    Hi,

    Are you certain that updating to Angular 19 will correct this? One of the other forum posts I linked in my initial question indicates they had this issue even with Angular 19.

    Going through the Angular 19 upgrade and it's indicating that there's an optional migration to migrate the project to the new build system. Is this something we should or should not do?

  • User Avatar
    0
    sumeyye.kurtulus created
    Support Team Angular Expert

    The browser builder is still supported, so you can keep it as is. After the upgrade, you should not face the build errors you mentioned. Let us know if you need further assistance!

  • User Avatar
    0
    rshapiro created

    The browser builder is still supported, so you can keep it as is. After the upgrade, you should not face the build errors you mentioned. Let us know if you need further assistance!

    Thanks. The update to Angular 19 did the trick. However, you should add the fact that the update to Angular 19 is required with the update to v9 into the migration guide and outline the actions to take on the couple of optional updates that are part of the Angular 19 updates.

  • User Avatar
    0
    sumeyye.kurtulus created
    Support Team Angular Expert

    Glad to hear your issue is resolved! Weโ€™re continuously updating our templates to align with the latest Angular framework updates. You can stay informed about these changes by following our release notes and migration guides:

    ๐Ÿ“Œ Release Notes: https://abp.io/docs/latest/release-info/release-notes ๐Ÿ“Œ Migration Guides: https://abp.io/docs/latest/release-info/migration-guides

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with โค๏ธ on ABP v10.0.0-preview. Updated on September 01, 2025, 08:37