Skip to content

Cannot GET doesn't indicate why... #18023

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
CieloVistaSoftware opened this issue Jun 24, 2020 · 2 comments
Closed

Cannot GET doesn't indicate why... #18023

CieloVistaSoftware opened this issue Jun 24, 2020 · 2 comments

Comments

@CieloVistaSoftware
Copy link

🚀 feature request

Relevant Package

This feature request is for @angular/cli or compiler

Description

cannotget

We had issued ng serve which was watching for changes. On a dependency change to an internal angular library, which compiled ok... We received this message above.

Going back to the terminal window we saw this:

PS C:\Users\name\source\repos\J\mglib> ng serve demo

chunk {main} main.js, main.js.map (main) 2.06 kB [initial] [rendered]
chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 169 kB [initial] [rendered]
chunk {runtime} runtime.js, runtime.js.map (runtime) 6.15 kB [entry] [rendered]
chunk {styles} styles.js, styles.js.map (styles) 14 kB [initial] [rendered]
chunk {vendor} vendor.js, vendor.js.map (vendor) 343 kB [initial] [rendered]
Date: 2020-06-24T13:51:46.683Z - Hash: 2091c10c953f6c16c475 - Time: 6335ms

 // this error was our fault, shouldn't this shown in the served page?
 ERROR in The target entry-point "lib" has missing dependencies:
 - projects/MG/src/mg/services/signalr.service

** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **

Clearly our fault but....

Here's the prod compile of our library.

File change detected. Starting incremental compilation...

------------------------------------------------------------------------------
Building entry point 'lib'
------------------------------------------------------------------------------
Compiling TypeScript sources through ngc
Bundling to FESM2015
WARNING: 'OnInit' and 'AfterViewInit' are imported from external module '@angular/core' but never used
Bundling to FESM5
WARNING: '__read' is imported from external module 'tslib' but never used
WARNING: 'OnInit' and 'AfterViewInit' are imported from external module '@angular/core' but never used
Bundling to UMD
WARNING: No name was provided for external module '@fortawesome/free-solid-svg-icons' in output.globals – guessing 'freeSolidSvgIcons'dSvgIcons'                                                                                                                  gularSvgIcons'
WARNING: No name was provided for external module '@fortawesome/free-regular-svg-icons' in output.globals – guessing 'freeRe 'signalr_service'gularSvgIcons'                                                                                                              ntawesome'
WARNING: No name was provided for external module 'projects/MG/src/mg/services/signalr.service' in output.globals – guessing 'signalr_service'
WARNING: No name was provided for external module '@fortawesome/angular-fontawesome' in output.globals – guessing 'angularFontawesome'
WARNING: No name was provided for external module '@aspnet/signalr' in output.globals – guessing 'signalr'
Minifying UMD bundle
Writing package metadata
Built lib

------------------------------------------------------------------------------
Built Angular Package
 - from: C:\Users\myName\source\repos\John-Peters\mglib\projects\MG
 - to:   C:\Users\myName\source\repos\John-Peters\mglib\dist\lib
------------------------------------------------------------------------------

Compilation complete. Watching for file changes...

Describe the solution you'd like

  • It's ok to serve the page, but show the error instead of cannot get.
  • We don't understand how ng build --prod did not catch this error.

Describe alternatives you've considered

Fix the library dependeny issue.
@alan-agius4 alan-agius4 transferred this issue from angular/angular Jun 25, 2020
@alan-agius4
Copy link
Collaborator

Duplicate of #17487

@alan-agius4 alan-agius4 marked this as a duplicate of #17487 Jun 25, 2020
@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 Jul 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants