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

[BUG] routes.html does not generate when main.ts is modified for HMR #560

Closed
cynx opened this issue May 6, 2018 · 2 comments
Closed

[BUG] routes.html does not generate when main.ts is modified for HMR #560

cynx opened this issue May 6, 2018 · 2 comments

Comments

@cynx
Copy link

cynx commented May 6, 2018

Overview of the issue

routes.html does not generate when main.ts is modified for HMR
To be more precise when platformBrowserDynamic().bootstrapModule(AppModule); is moved to a function or block, routes are not generated

Operating System, Node.js, npm, compodoc version(s)

compodoc version - 1.1.2
node - 8.4.0
npm - 5.3.0

Angular configuration, a package.json file in the root folder

package.json

Compodoc installed globally or locally ?

installed as dev dependency

Motivation for or Use Case

main.ts

Reproduce the error

error can be reproduced also by simply moving boostraping in simple block statement. for. eg.

if (true) {
platformBrowserDynamic().bootstrapModule(AppModule);
}
@vogloblinsky
Copy link
Contributor

bootstrapModule API is searched right now with this implementation : https://github.com/compodoc/compodoc/blob/develop/src/app/compiler/dependencies.ts#L606
I will add support for if statements

@vogloblinsky vogloblinsky changed the title routes.html does not generate when main.ts is modified for HMR [BUG] routes.html does not generate when main.ts is modified for HMR May 6, 2018
@vogloblinsky vogloblinsky added this to the 1.1.3 milestone May 6, 2018
@lock
Copy link

lock bot commented Sep 30, 2019

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem. Why locking ? Having issues with the most up-to-date context.

@lock lock bot locked as resolved and limited conversation to collaborators Sep 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants