question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NG Upgrade silently fails to bootstrap hybrid application

See original GitHub issue

I’m submitting a … (check one with “x”)

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior The upgrade adapter silently fails to bootstrap a hybrid application in the following cases:

  • Invalid dependency in angular2 components . See reproduction plunk bellow
  • Template errors in angular 2 component. See reproduction plunk bellow

Expected behavior Errors should be reported by the upgrade adapter

Minimal reproduction of the problem with instructions


   bootstrapping ...

To fix the bootstrapping issue, comment lines 21 and 22 in src/app.ts


   // COMMENT ME TO FIX BOOTSTRAPPING ISSUE
  constructor(foo:bar){
  }

   bootstrapping ...

To fix the bootstrapping issue, comment line 14 in src/app.ts


    <!-- COMMENT ME TO FIX BOOTSTRAPPING ERROR -->
      <BAD TEMPLATE div></div>

What is the motivation / use case for changing the behavior?

Improve development experience

Please tell us about your environment:

  • Angular version: 2.0.1

  • Browser: all

  • Language: TypeScript 2.0.3

  • Node (for AoT issues): node --version = N/A

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
btrigueirocommented, Oct 5, 2016

+1

0reactions
angular-automatic-lock-bot[bot]commented, Sep 10, 2019

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular migration - Hybrid application is not bootstrapping
Expected: my Hybrid application gets bootstrapped. Actual: a blank screen with no error thrown. UPDATE Issue was these lines:
Read more >
Upgrading from AngularJS to Angular
To bootstrap a hybrid application, you must bootstrap each of the Angular and ... Unlike in AngularJS, Angular expressions do not fail silently...
Read more >
Migrate AngularJS to Angular through Angular CLI - Medium
Bootstrapping an hybrid application. In order to be using both versions of Angular, we need to bootstrap the AngularJS into the new Angular....
Read more >
Angular(JS) like it's 2019 - How to upgrade to Angular 7 - Scalac
working with the hybrid application requires bootstrapping manually two modules, one for each ng version (more on this below).
Read more >
AngularJS: Developer Guide: Migrating from Previous Versions
AngularJS has undergone thorough security reviews to make applications safer by default, ... error[inputType] , and the ng-invalid-[inputType] class.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found