Skip to content
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

Uncaught Error: No NgModule metadata found for 'Ix'. #74

Closed
shuihuasheng opened this issue Mar 2, 2020 · 1 comment
Closed

Uncaught Error: No NgModule metadata found for 'Ix'. #74

shuihuasheng opened this issue Mar 2, 2020 · 1 comment
Labels
question Further information is requested

Comments

@shuihuasheng
Copy link

shuihuasheng commented Mar 2, 2020

-----main.ts-----

if (window['planet'] && window['planet']['portalApplication']) {
  defineApplication('micro-test', (portalApp: PlanetPortalApplication) => {
    return platformBrowserDynamic([
      {
        provide: PlanetPortalApplication,
        useValue: portalApp
      }
    ])
      .bootstrapModule(AppModule)
      .then(appModule => {
        return appModule;
      })
      .catch(error => {
        console.error(error);
        return null;
      });
  });
} else {
  const bootstrap = () => {
    return platformBrowserDynamic()
      .bootstrapModule(AppModule)
      .then(res => {
        if ((window as any).appBootstrap) {
          (window as any).appBootstrap();
        }
        return res;
      });
  };
  bootstrap();
}

ng build success
open the url error: Uncaught Error: No NgModule metadata found for 'Ix'.
    at ey.resolve (main-es2015.d748b8093d9a2467be10.js:1)
    at Vv.getNgModuleMetadata (main-es2015.d748b8093d9a2467be10.js:1)
    at ky._loadModules (main-es2015.d748b8093d9a2467be10.js:1)
    at ky._compileModuleAndComponents (main-es2015.d748b8093d9a2467be10.js:1)
    at ky.compileModuleAsync (main-es2015.d748b8093d9a2467be10.js:1)
    at useClass.compileModuleAsync (main-es2015.d748b8093d9a2467be10.js:1)
    at main-es2015.d748b8093d9a2467be10.js:1
    at Object.bootstrapModule (main-es2015.d748b8093d9a2467be10.js:1)
    at Module.zUnb (main-es2015.d748b8093d9a2467be10.js:1)
    at n (main-es2015.d748b8093d9a2467be10.js:1)
@why520crazy why520crazy added the question Further information is requested label Mar 2, 2020
@why520crazy
Copy link
Member

what's Ix? it looks like your AppModule references Ix

  1. do you also throw an error without using the ngx-planet?
  2. show details for AppModule

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants