fundamental-ngx icon indicating copy to clipboard operation
fundamental-ngx copied to clipboard

ɵinternalBootstrapApplication was not found

Open rolfen opened this issue 3 years ago • 2 comments

Is this a bug, enhancement, or feature request?

Bug

Which versions of Angular and Fundamental Library for Angular are affected? (If this is a feature request, use current version.)

@angular/core version 14.2.1 @fundamental-ngx/core version 0.36.0

If this is a bug, please provide steps for reproducing it.

Adding the following to app.module.ts and compiling produces the error below. Some code was removed for brevity and replaced by //...

// ...

import { FundamentalNgxCoreModule } from '@fundamental-ngx/core';

// ...

@NgModule({
  // ...
  imports: [
    // ...
    FundamentalNgxCoreModule
  ],

// ...

The error:

./node_modules/@fundamental-ngx/core/node_modules/@angular/platform-browser/fesm2020/platform-browser.mjs:1318:9-38 - Error:
 export 'ɵinternalBootstrapApplication' (imported as 'ɵinternalBootstrapApplication') was not found in '@angular/core' (poss
ible exports: ANALYZE_FOR_ENTRY_COMPONENTS, ANIMATION_MODULE_TYPE, APP_BOOTSTRAP_LISTENER, APP_ID, APP_INITIALIZER, Applicat
ionInitStatus, ApplicationModule, ApplicationRef, Attribute, COMPILER_OPTIONS, CUSTOM_ELEMENTS_SCHEMA, ChangeDetectionStrate
gy, ChangeDetectorRef, Compiler, CompilerFactory, Component, ComponentFactory, ComponentFactoryResolver, ComponentRef, Conte
ntChild, ContentChildren, DEFAULT_CURRENCY_CODE, DebugElement, DebugEventListener, DebugNode, DefaultIterableDiffer, Directi
ve, ENVIRONMENT_INITIALIZER, ElementRef, EmbeddedViewRef, EnvironmentInjector, ErrorHandler

//...

Please provide relevant source code if applicable.

Is there anything else we should know?

Angular changed the name of the function from ɵinternalBootstrapApplication to ɵinternalCreateApplication in 14.2.1 which is causing this error.

It is located in node_modules/@angular/core/index.d.ts around line 10330 or so in @angular/core version 14.2.1

rolfen avatar Sep 12 '22 17:09 rolfen

Hello @rolfen, thank you for using fundamental-ngx! The fundamental-ngx team will triage your issue as soon as possible.

github-actions[bot] avatar Sep 12 '22 17:09 github-actions[bot]

@fundamental-ngx/i18n is requesting an old version of @angular/platform-browser-dynamic which is not compatible with the latest version of @angular/core, this causes the error when these two modules try to work together.

$ npm ls @angular/platform-browser
[email protected] C:\Users\Your Ass\code\fiori-app-5
├─┬ @angular/[email protected]
│ └── @angular/[email protected] deduped
├─┬ @angular/[email protected]
│ └── @angular/[email protected] deduped
├── @angular/[email protected]
├─┬ @angular/[email protected]
│ └── @angular/[email protected] deduped
└─┬ @fundamental-ngx/[email protected]
  └─┬ @fundamental-ngx/[email protected]
    └─┬ @angular/[email protected]
      └── @angular/[email protected]

From @fundamental-ngx/i18n/package.json:

{
  "name": "@fundamental-ngx/i18n",
  "version": "0.36.0",
  "peerDependencies": {
    "@angular/common": "^14.0.0",
    "@angular/core": "^14.0.0",
    "rxjs": "7.5.6",
    "zone.js": "0.11.7",
    "@angular/platform-browser-dynamic": "14.0.2"
  },
// ...

rolfen avatar Sep 14 '22 22:09 rolfen

Is there any sort of workaround until this gets addressed properly?

slithzerikai avatar Oct 24 '22 09:10 slithzerikai

Hopefully, this is fixed with that patch up there

g-cheishvili avatar Oct 25 '22 13:10 g-cheishvili

The issue still exists in 0.36.x, is there any update?

m8524769 avatar Mar 03 '23 07:03 m8524769

Is there any sort of workaround until this gets addressed properly?

Downgrading the angular to ~14.0.0 will solve this problem.

m8524769 avatar Mar 06 '23 06:03 m8524769