Skip to content

angular-cli won't bootstrap with wrapped bootstrap code #6930

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

Closed
1 of 2 tasks
e-cloud opened this issue Jul 10, 2017 · 3 comments
Closed
1 of 2 tasks

angular-cli won't bootstrap with wrapped bootstrap code #6930

e-cloud opened this issue Jul 10, 2017 · 3 comments
Labels
P5 The team acknowledges the request but does not plan to address it, it remains open for discussion severity2: inconvenient

Comments

@e-cloud
Copy link
Contributor

e-cloud commented Jul 10, 2017

Bug Report or Feature Request (mark with an x)

  • bug report -> please search issues before submitting
  • feature request

Versions.

    _                      _                 ____ _     ___
   / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
  / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
 / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
/_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
               |___/
@angular/cli: 1.2.0
node: 7.10.0
os: linux x64
@angular/animations: 4.2.6
@angular/cdk: 2.0.0-beta.8
@angular/common: 4.2.6
@angular/compiler: 4.2.6
@angular/core: 4.2.6
@angular/forms: 4.2.6
@angular/http: 4.2.6
@angular/material: 2.0.0-beta.8
@angular/platform-browser: 4.2.6
@angular/platform-browser-dynamic: 4.2.6
@angular/router: 4.2.6
@angular/cli: 1.2.0
@angular/compiler-cli: 4.2.6
@angular/language-service: 4.2.6

Repro steps.

Workable version

https://github.com/e-cloud/ngrx-store-hmr-integration/tree/master
The master branch works with shadowed variable -- AppModule in main.ts, which will be blamed by tslint

Unworkable version

https://github.com/e-cloud/ngrx-store-hmr-integration/tree/issue-with-cli
The issue-with-cli branch does not work with refactored variable -- Module in main.ts

The log given by the failure.(For unworkable version)

Tried to find bootstrap code, but could not. Specify either statically analyzable bootstrap code or pass in an entryModule to the plugins options.
Error: Tried to find bootstrap code, but could not. Specify either statically analyzable bootstrap code or pass in an entryModule to the plugins options.
    at Object.resolveEntryModuleFromMain (/home/cloud/devlab/ngrx-store-hmr-integration/node_modules/@ngtools/webpack/src/entry_resolver.js:128:11)
    at AotPlugin._setupOptions (/home/cloud/devlab/ngrx-store-hmr-integration/node_modules/@ngtools/webpack/src/plugin.js:143:50)
    at new AotPlugin (/home/cloud/devlab/ngrx-store-hmr-integration/node_modules/@ngtools/webpack/src/plugin.js:26:14)
    at _createAotPlugin (/home/cloud/devlab/ngrx-store-hmr-integration/node_modules/@angular/cli/models/webpack-configs/typescript.js:55:12)
    at Object.exports.getNonAotConfig (/home/cloud/devlab/ngrx-store-hmr-integration/node_modules/@angular/cli/models/webpack-configs/typescript.js:70:19)
    at NgCliWebpackConfig.buildConfig (/home/cloud/devlab/ngrx-store-hmr-integration/node_modules/@angular/cli/models/webpack-config.js:27:37)
    at Class.run (/home/cloud/devlab/ngrx-store-hmr-integration/node_modules/@angular/cli/tasks/serve.js:38:98)
    at check_port_1.checkPort.then.port (/home/cloud/devlab/ngrx-store-hmr-integration/node_modules/@angular/cli/commands/serve.js:110:26)
    at process._tickCallback (internal/process/next_tick.js:109:7)

Desired functionality.

The code can be bootstraped without problem

Mention any other details that might be useful.

related #3540

@Brocco Brocco added P5 The team acknowledges the request but does not plan to address it, it remains open for discussion severity2: inconvenient labels Jul 20, 2017
@hansl hansl removed their assignment Feb 6, 2018
@mgechev
Copy link
Member

mgechev commented Dec 18, 2018

@e-cloud can you still reproduce this issue?

@mgechev
Copy link
Member

mgechev commented Dec 21, 2018

Closing the issue due to inactivity. If the problem still exists in the latest version of the CLI, please open a new issue following the template and providing a minimal demo where we can reproduce it. Thanks! :-)

@mgechev mgechev closed this as completed Dec 21, 2018
@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
P5 The team acknowledges the request but does not plan to address it, it remains open for discussion severity2: inconvenient
Projects
None yet
Development

No branches or pull requests

4 participants