question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ng serve & ng e2e fails when using preboot with angular CLI

See original GitHub issue
  • I’m submitting a …
  • bug report
  • feature request
  • Which parts of preboot are affected by this issue?
  • server side
  • client side
  • inline
  • build process
  • docs
  • tests
  • Do you want to request a feature or report a bug? Bug

  • What is the current behavior? ng serve and ng e2e are failing with the following error log in the console:

C:\Users\PrebootPC\Desktop\Projects\Preboot\Preboot>ng e2e
** NG Live Development Server is listening on localhost:49152, open your browser on http://localhost:49152/ **
Date: 2017-11-06T10:04:48.102Z
Hash: 3d6f41a2627365d2252f
Time: 11686ms
chunk {auth.module} test.module.chunk.js, auth.module.chunk.js.map () 148 kB  [rendered]
chunk {email.module} auth.module.chunk.js, email.module.chunk.js.map () 3.61 kB  [rendered]
chunk {inline} inline.bundle.js, inline.bundle.js.map (inline) 5.83 kB [entry] [rendered]
chunk {main} main.bundle.js, main.bundle.js.map (main) 82.5 kB [initial] [rendered]
chunk {polyfills} polyfills.bundle.js, polyfills.bundle.js.map (polyfills) 217 kB [initial] [rendered]
chunk {settings.module} settings.module.chunk.js, settings.module.chunk.js.map () 6.87 kB  [rendered]
chunk {storage.module} welcome.module.chunk.js, welcome2.module.chunk.js.map () 3.66 kB  [rendered]
chunk {styles} styles.bundle.js, styles.bundle.js.map (styles) 77.1 kB [initial] [rendered]
chunk {tasks.module} home.module.chunk.js, core.module.chunk.js.map () 51.7 kB  [rendered]
chunk {updates.module} test2.module.chunk.js, updates.module.chunk.js.map () 3.66 kB  [rendered]
chunk {vendor} vendor.bundle.js, vendor.bundle.js.map (vendor) 7.39 MB [initial] [rendered]

ERROR in ./node_modules/preboot/src/browser/browser-preboot.module.ts
Module build failed: Error: C:\Users\PrebootPC\Desktop\Projects\Preboot\Preboot\node_modules\preboot\src\browser\browser-preboot.module.ts is not part of the compilation output. Please check the other error messages for details.
    at AngularCompilerPlugin.getCompiledFile (C:\Users\PrebootPC\Desktop\Projects\Preboot\Preboot\node_modules\@ngtools\webpack\src\angular_compiler_plugin.js:629:23)
    at plugin.done.then (C:\Users\PrebootPC\Desktop\Projects\Raya\raya\node_modules\@ngtools\webpack\src\loader.js:467:39)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
 @ ./src/app/app.module.ts 15:0-82
 @ ./src/main.ts
 @ multi webpack-dev-server/client?http://0.0.0.0:0 ./src/main.ts

webpack: Failed to compile.
Build did not succeed. Please fix errors before running e2e task
  • If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem by creating a github repo.

  • What is the expected behavior? app should serve with ng serve e2e tests should pass.

  • Please tell us about your environment:

  • Browser: [Chrome 63]
  • Language: [TypeScript 2.6.1]
  • OS: [Windows]
  • Platform: [NodeJs]

image

  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)

ng build --prod & ng test do not emit the error described.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
CaerusKarucommented, Nov 30, 2017

@naveedahmed1 We’re currently validating the new build format in #51. Most issues have been resolved and we should be able to push a new version out this week or early next week. Stay tuned.

0reactions
naveedahmed1commented, Dec 4, 2017

Sounds good 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

"ng e2e" is failling probably in reason of proxy but "ng serve ...
1) when you run ng e2e , it report error: Error: connect ETIMEDOUT x.x.x.x:443. because the default value of option --webdriver-update of ng...
Read more >
Server-side rendering (SSR) with Angular Universal
Easily prepare an application for server-side rendering using the Angular CLI. The CLI schematic @nguniversal/express-engine performs the required steps, ...
Read more >
angular5TemplateCore - Angular, Vue, React ... - jQWidgets
hi, i'm using an angular5TF project and i can't use jqwidget. i try to use a combobox but everytime this error occured: ERROR...
Read more >
angular/angular-cli - Gitter
HI how can i use ionicons in cli project, i am using scss preprocessor i ... Hello buddies I am new to angular...
Read more >
Angular CLI - ng e2e Command - Tutorialspoint
ng e2e builds, serves an application and then runs the end to end test cases using protractor. Options are optional parameters. Arguments. The...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found