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.

unable to run e2e tests with an empty project

See original GitHub issue

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

Command (mark with an x)

- [ ] new
- [ ] build
- [ ] serve
- [ ] test
- [x] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Versions

node: 11.3.0 npm: 6.4.1 angular-cli: 7.1.0 windows: 10

Repro steps

Create a new project with ng new project-name and then run ng e2e

The log given by the failure

PS C:\Temp\myuitest\myiutest> ng e2e
** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **

Date: 2018-12-02T08:04:37.191Z
Hash: 5adaf35be360cda93f06
Time: 10268ms
chunk {main} main.js, main.js.map (main) 11.5 kB [initial] [rendered]
chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 223 kB [initial] [rendered]
chunk {runtime} runtime.js, runtime.js.map (runtime) 6.08 kB [entry] [rendered]
chunk {styles} styles.js, styles.js.map (styles) 16.4 kB [initial] [rendered]
chunk {vendor} vendor.js, vendor.js.map (vendor) 3.67 MB [initial] [rendered]
i 「wdm」: Compiled successfully.
[11:04:38] I/update - chromedriver: file exists C:\Temp\myuitest\myiutest\node_modules\protractor\node_modules\webdriver-manager\selenium\chromedriver_2.44.zip
[11:04:38] I/update - chromedriver: unzipping chromedriver_2.44.zip
[11:04:38] I/update - chromedriver: chromedriver_2.44.exe up to date
events.js:167
      throw er; // Unhandled 'error' event
      ^

Error: write EPIPE
    at ChildProcess.target._send (internal/child_process.js:758:20)
    at ChildProcess.target.send (internal/child_process.js:642:19)
    at Observable.rxjs_1.Observable.obs [as _subscribe] (C:\Temp\myuitest\myiutest\node_modules\@angular-devkit\build-angular\src\utils\run-module-as-observable-fork.js:57:23)
    at Observable._trySubscribe (C:\Temp\myuitest\myiutest\node_modules\rxjs\internal\Observable.js:44:25)
    at Observable.subscribe (C:\Temp\myuitest\myiutest\node_modules\rxjs\internal\Observable.js:30:22)
    at C:\Temp\myuitest\myiutest\node_modules\rxjs\internal\util\subscribeTo.js:22:31
    at Object.subscribeToResult (C:\Temp\myuitest\myiutest\node_modules\rxjs\internal\util\subscribeToResult.js:10:45)
    at MergeMapSubscriber._innerSub (C:\Temp\myuitest\myiutest\node_modules\rxjs\internal\operators\mergeMap.js:82:29)
    at MergeMapSubscriber._tryNext (C:\Temp\myuitest\myiutest\node_modules\rxjs\internal\operators\mergeMap.js:76:14)
    at MergeMapSubscriber._next (C:\Temp\myuitest\myiutest\node_modules\rxjs\internal\operators\mergeMap.js:59:18)
    at MergeMapSubscriber.Subscriber.next (C:\Temp\myuitest\myiutest\node_modules\rxjs\internal\Subscriber.js:67:18)
    at MergeMapSubscriber.notifyNext (C:\Temp\myuitest\myiutest\node_modules\rxjs\internal\operators\mergeMap.js:92:26)
    at InnerSubscriber._next (C:\Temp\myuitest\myiutest\node_modules\rxjs\internal\InnerSubscriber.js:28:21)
    at InnerSubscriber.Subscriber.next (C:\Temp\myuitest\myiutest\node_modules\rxjs\internal\Subscriber.js:67:18)
    at C:\Temp\myuitest\myiutest\node_modules\rxjs\internal\util\subscribeToPromise.js:7:24
    at process.internalTickCallback (internal/process/next_tick.js:77:7)
Emitted 'error' event at:
    at process.nextTick (internal/child_process.js:762:39)
    at process.internalTickCallback (internal/process/next_tick.js:70:11)
PS C:\Temp\myuitest\myiutest>

Mention any other details that might be useful

I have tried running ng e2e --webdriver-update=false but got the same error.

Thanks,

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:10
  • Comments:28 (6 by maintainers)

github_iconTop GitHub Comments

7reactions
YuliyaYcommented, Jan 9, 2019

Node 10.15.1 and angular 7.2 -> had the same error Downgraded node to 10.14.1 -> worked

5reactions
filipesilvacommented, Dec 21, 2018

Heya all, we have a fix incoming in https://github.com/angular/angular-cli/pull/13272.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to run e2e tests if Angular project is generated in NX ...
json in start-empty and run yarn e2e , I get another error: "The current directory isn't part of an Nx workspace". Why do...
Read more >
CCS/CC1310: Failed to link empty project with no RTOS.
First time I load project loads and runs immediately with no jump to main and no run button . Cortex_M3_0: GEL Output: Memory...
Read more >
Running E2E tests on EAS Build - Expo Documentation
The first step to writing E2E tests is to have something to test - we have an empty app, so let's make our...
Read more >
Writing Your First E2E Test - Cypress Documentation
What you'll learn How to start testing a new project in Cypress. What passing and failing ... We're going to do this with...
Read more >
Run your Playwright E2E Tests in GitLab CI | by Valentin Despa
One of the reasons why your tests may be failing is due to an inaccessible server URL, like localhost. Quite often, we deploy...
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