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

Could not connect to server Error with nx monorepo project #112

Closed
xmlking opened this issue Dec 29, 2019 · 3 comments
Closed

Could not connect to server Error with nx monorepo project #112

xmlking opened this issue Dec 29, 2019 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@xmlking
Copy link

xmlking commented Dec 29, 2019

🐞 Bug report

Description

I have fresh nrwl nx monorepo.
i added blog module , then try to build static site.

yarn run scully throws Could not connect to server error .

the code works fine with ng server and open http://localhost:4200/home/blog

🔬 Minimal Reproduction

git clone https://github.com/xmlking/yeti.git
cd yeti
ng build && yarn run scully 
# this throw error

yarn run scully serve

💻Your Environment

Angular Version:


Angular CLI: 9.0.0-rc.7
Node: 13.5.0
OS: darwin x64

Angular: 9.0.0-rc.7
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, localize, platform-browser
... platform-browser-dynamic, router, service-worker
Ivy Workspace: Yes

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.900.0-rc.5
@angular-devkit/build-angular     0.900.0-rc.7
@angular-devkit/build-optimizer   0.900.0-rc.7
@angular-devkit/build-webpack     0.900.0-rc.5
@angular-devkit/core              9.0.0-rc.5
@angular-devkit/schematics        9.0.0-rc.5
@angular/cdk                      8.2.3
@ngtools/webpack                  9.0.0-rc.7
@schematics/angular               9.0.0-rc.7
@schematics/update                0.900.0-rc.7
rxjs                              6.5.3
typescript                        3.6.4
webpack                           4.41.2

Scully Version:


0.0.9

🔥 Exception or Error


 yarn run scully
yarn run v1.21.1
$ scully
Cleaned up /Users/schintha/Developer/Work/SPA/yeti/dist/scully/apps/webapp folder.
 ☺   new Angular build imported
started servers in background
Could not connect to server
✨  Done in 16.65s.
@xmlking xmlking added the bug Something isn't working label Dec 29, 2019
@SanderElias
Copy link
Contributor

Thanks for posting the workaround. This gives me some clues on where this is coming from.
We are using guess-parser to traverse the routes in the angular app. It seems that it can't track the NX libraries. I'm going to investigate this a bit deeper and will talk to Minko to see if there is a proper solution for this.

@SanderElias SanderElias self-assigned this Dec 31, 2019
@mgechev
Copy link

mgechev commented Jan 4, 2020

Maybe we can close this issue and continue the discussion in #40?

@xmlking
Copy link
Author

xmlking commented Jan 4, 2020

will be tracked in #40

@xmlking xmlking closed this as completed Jan 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants