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

bootstrap(App, [....]).then((appRef: ComponentRef) is not called for production #451

Closed
mburger81 opened this issue Mar 21, 2016 · 2 comments

Comments

@mburger81
Copy link

In my main.ts i do this

export function main() {
  return browser.bootstrap(App, [
    ...APPLICATION_PROVIDERS,
    ngCore.provide(ngCore.PLATFORM_DIRECTIVES, {useValue: APPLICATION_DIRECTIVES, multi: true}),
    ngCore.provide(ngCore.PLATFORM_PIPES, {useValue: APPLICATION_PIPES, multi: true})
  ])
  .then((appRef: ngCore.ComponentRef) => {
      console.log('ABCDEF');
        // store a reference to the application injector
        appInjector(appRef.injector);
  })
  .catch(err => console.error(err));
}

but on running npm run build:prod the ".then" is not called and so my appInject is not called

@PatrickJS
Copy link
Owner

I was able to get it working. can you try with the latest changes?

@mburger81
Copy link
Author

@gdi2290 Yesterday evening I downloaded the last version, and on last version it seams to work but I'm not realy sure. On having a empty project it works but including my app I have the same issue as discussed in #456 , and so I'm not able to test if it works realy.

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

No branches or pull requests

3 participants