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

Application bootstrapping breaks migrating from 19.4 to 19.5 #28061

Open
1 of 4 tasks
davidmccoy-8451 opened this issue Sep 24, 2024 · 0 comments
Open
1 of 4 tasks

Application bootstrapping breaks migrating from 19.4 to 19.5 #28061

davidmccoy-8451 opened this issue Sep 24, 2024 · 0 comments
Assignees
Labels
scope: angular Issues related to Angular support in Nx type: bug

Comments

@davidmccoy-8451
Copy link

davidmccoy-8451 commented Sep 24, 2024

Current Behavior

My host main is no longer loading the bootstrap file. My main.ts:

import('./bootstrap');

I can pause on a breakpoint there, but when I place a breakpoint in the bootstrap file on bootstrapApplication, it never gets hit. This is just with updating to Nx 19.5 with nx migrate 19.5 with no other changes (just package.json and yarn.lock update)

Expected Behavior

Application bootstrapping happens.

GitHub Repo

No response

Steps to Reproduce

  1. Use a host app with a bootstrap file that has a setup like
async function bootstrapApplication() {
  try {
    setRemoteDefinitions(theRemoteDefinitions);
    await platformBrowserDynamic().bootstrapModule(AppModule);
  } catch (err) {
    console.error(err);
  }
}

bootstrapApplication();

2. Have a main.ts like
```ts
import('./bootstrap');

Nx Report

Node           : 18.19.1
OS             : darwin-arm64
Native Target  : aarch64-macos
yarn           : 1.22.19

nx                 : 19.5.7
@nx/js             : 19.5.7
@nx/jest           : 19.5.7
@nx/linter         : 19.5.7
@nx/eslint         : 19.5.7
@nx/workspace      : 19.5.7
@nx/angular        : 19.5.7
@nx/cypress        : 19.5.7
@nx/devkit         : 19.5.7
@nx/eslint-plugin  : 19.5.7
@nx/node           : 19.5.7
@nx/storybook      : 19.5.7
@nrwl/tao          : 19.5.7
@nx/web            : 19.5.7
@nx/webpack        : 19.5.7
typescript         : 5.1.6
---------------------------------------
Registered Plugins:
@nx/eslint/plugin
---------------------------------------
Community plugins:
@compodoc/compodoc    : 1.1.21
@ngrx/component-store : 16.0.1
@ngrx/effects         : 16.0.1
@ngrx/entity          : 16.0.1
@ngrx/router-store    : 16.0.1
@ngrx/schematics      : 16.0.1
@ngrx/signals         : 17.1.1
@ngrx/store           : 16.0.1
@ngrx/store-devtools  : 16.0.1
@rx-angular/cdk       : 1.0.0
@rx-angular/template  : 1.1.0
@storybook/angular    : 7.4.4
ng-mocks              : 14.12.1

Failure Logs

No response

Package Manager Version

No response

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response

@davidmccoy-8451 davidmccoy-8451 changed the title setRemoteDefinitions no longer working in 19.5 Application bootstrapping breaks migrating from 19.4 to 19.5 Sep 24, 2024
@jaysoo jaysoo added the scope: angular Issues related to Angular support in Nx label Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: angular Issues related to Angular support in Nx type: bug
Projects
None yet
Development

No branches or pull requests

3 participants