Angular 5 Unit Test Dependencies not found
Currently I am trying to run unit test on my Angular 5 project and it continuously throwing error 'Module not found' for various files mentioned below and I tried to remove node_modules
and done the install
again but error is still the same. I am facing this while trying to running both options i.e ng e2e
and ng test
seperately.
ERROR in ./node_modules/saucelabs/index.js
Module not found: Error: Can't resolve './lib-cov/SauceLabs' in 'C:developmentweb-projectfrontendwebsrcmainangularnode_modulessaucelabs'
ERROR in ./node_modules/protractor/built/bpRunner.js
Module not found: Error: Can't resolve 'child_process' in 'C:developmentweb-projectfrontendweb
d-websrcmainangularnode_modulesprotractorbuilt'
ERROR in ./node_modules/protractor/built/runner.js
Module not found: Error: Can't resolve 'child_process' in 'C:developmentweb-projectfrontendweb
d-websrcmainangularnode_modulesprotractorbuilt'
ERROR in ./node_modules/protractor/built/debugger.js
Module not found: Error: Can't resolve 'child_process' in 'C:developmentweb-projectfrontendweb
d-websrcmainangularnode_modulesprotractorbuilt'
ERROR in ./node_modules/selenium-webdriver/firefox/binary.js
Module not found: Error: Can't resolve 'child_process' in 'C:developmentweb-projectfrontendweb
d-websrcmainangularnode_modulesselenium-webdriverfirefox'
ERROR in ./node_modules/selenium-webdriver/io/exec.js
Module not found: Error: Can't resolve 'child_process' in 'C:developmentweb-projectfrontendweb
d-websrcmainangularnode_modulesselenium-webdriverio'
ERROR in ./node_modules/selenium-webdriver/net/portprober.js
Module not found: Error: Can't resolve 'child_process' in 'C:developmentweb-projectfrontendweb
d-websrcmainangularnode_modulesselenium-webdrivernet'
ERROR in ./node_modules/webdriver-js-extender/node_modules/selenium-webdriver/firefox/binary.js
Module not found: Error: Can't resolve 'child_process' in 'C:developmentweb-projectfrontendweb
d-websrcmainangularnode_moduleswebdriver-js-extendernode_modulesselenium-webdriverfirefox'
ERROR in ./node_modules/webdriver-js-extender/node_modules/selenium-webdriver/io/exec.js
Module not found: Error: Can't resolve 'child_process' in 'C:developmentweb-projectfrontendweb
d-websrcmainangularnode_moduleswebdriver-js-extendernode_modulesselenium-webdriverio'
ERROR in ./node_modules/webdriver-js-extender/node_modules/selenium-webdriver/net/portprober.js
Module not found: Error: Can't resolve 'child_process' in 'C:developmentweb-projectfrontendweb
d-websrcmainangularnode_moduleswebdriver-js-extendernode_modulesselenium-webdrivernet'
ERROR in ./node_modules/protractor/built/debugger.js
Module not found: Error: Can't resolve 'repl' in 'C:developmentweb-projectfrontendwebsrc
mainangularnode_modulesprotractorbuilt'
ERROR in ./node_modules/blocking-proxy/built/lib/bin.js
Module parse failed: Unexpected character '#' (1:0)
You may need an appropriate loader to handle this file type.
| #!/usr/bin/env node
| "use strict";
| Object.defineProperty(exports, "__esModule", { value: true });
I have verified saucelabs
folder under node_modules
and it seems ok.
Here are my installed packages on my windows 7 machine:
Angular CLI: 1.7.4
Node: 6.9.1
OS: win32 x64
Angular: 5.2.11
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router, service-worker
@angular/cdk: 5.2.5
@angular/cli: 1.7.4
@angular-devkit/build-optimizer: 0.3.2
@angular-devkit/core: 0.3.2
@angular-devkit/schematics: 0.3.2
@ngtools/json-schema: 1.2.0
@ngtools/webpack: 1.10.2
@schematics/angular: 0.3.2
@schematics/package-update: 0.3.2
typescript: 2.4.2
webpack: 3.11.0
I have tried to search a lot but didn't find any straight solution. For example this issue posted on github https://github.com/travis-ci/travis-ci/issues/7858 is kind of similar to me but this doesn't provide any concrete solution to this issue.
If anyone can help me to understand the issue and how could solve it then I would be very thankful to you.
Thanks!
unit-testing angular-cli
add a comment |
Currently I am trying to run unit test on my Angular 5 project and it continuously throwing error 'Module not found' for various files mentioned below and I tried to remove node_modules
and done the install
again but error is still the same. I am facing this while trying to running both options i.e ng e2e
and ng test
seperately.
ERROR in ./node_modules/saucelabs/index.js
Module not found: Error: Can't resolve './lib-cov/SauceLabs' in 'C:developmentweb-projectfrontendwebsrcmainangularnode_modulessaucelabs'
ERROR in ./node_modules/protractor/built/bpRunner.js
Module not found: Error: Can't resolve 'child_process' in 'C:developmentweb-projectfrontendweb
d-websrcmainangularnode_modulesprotractorbuilt'
ERROR in ./node_modules/protractor/built/runner.js
Module not found: Error: Can't resolve 'child_process' in 'C:developmentweb-projectfrontendweb
d-websrcmainangularnode_modulesprotractorbuilt'
ERROR in ./node_modules/protractor/built/debugger.js
Module not found: Error: Can't resolve 'child_process' in 'C:developmentweb-projectfrontendweb
d-websrcmainangularnode_modulesprotractorbuilt'
ERROR in ./node_modules/selenium-webdriver/firefox/binary.js
Module not found: Error: Can't resolve 'child_process' in 'C:developmentweb-projectfrontendweb
d-websrcmainangularnode_modulesselenium-webdriverfirefox'
ERROR in ./node_modules/selenium-webdriver/io/exec.js
Module not found: Error: Can't resolve 'child_process' in 'C:developmentweb-projectfrontendweb
d-websrcmainangularnode_modulesselenium-webdriverio'
ERROR in ./node_modules/selenium-webdriver/net/portprober.js
Module not found: Error: Can't resolve 'child_process' in 'C:developmentweb-projectfrontendweb
d-websrcmainangularnode_modulesselenium-webdrivernet'
ERROR in ./node_modules/webdriver-js-extender/node_modules/selenium-webdriver/firefox/binary.js
Module not found: Error: Can't resolve 'child_process' in 'C:developmentweb-projectfrontendweb
d-websrcmainangularnode_moduleswebdriver-js-extendernode_modulesselenium-webdriverfirefox'
ERROR in ./node_modules/webdriver-js-extender/node_modules/selenium-webdriver/io/exec.js
Module not found: Error: Can't resolve 'child_process' in 'C:developmentweb-projectfrontendweb
d-websrcmainangularnode_moduleswebdriver-js-extendernode_modulesselenium-webdriverio'
ERROR in ./node_modules/webdriver-js-extender/node_modules/selenium-webdriver/net/portprober.js
Module not found: Error: Can't resolve 'child_process' in 'C:developmentweb-projectfrontendweb
d-websrcmainangularnode_moduleswebdriver-js-extendernode_modulesselenium-webdrivernet'
ERROR in ./node_modules/protractor/built/debugger.js
Module not found: Error: Can't resolve 'repl' in 'C:developmentweb-projectfrontendwebsrc
mainangularnode_modulesprotractorbuilt'
ERROR in ./node_modules/blocking-proxy/built/lib/bin.js
Module parse failed: Unexpected character '#' (1:0)
You may need an appropriate loader to handle this file type.
| #!/usr/bin/env node
| "use strict";
| Object.defineProperty(exports, "__esModule", { value: true });
I have verified saucelabs
folder under node_modules
and it seems ok.
Here are my installed packages on my windows 7 machine:
Angular CLI: 1.7.4
Node: 6.9.1
OS: win32 x64
Angular: 5.2.11
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router, service-worker
@angular/cdk: 5.2.5
@angular/cli: 1.7.4
@angular-devkit/build-optimizer: 0.3.2
@angular-devkit/core: 0.3.2
@angular-devkit/schematics: 0.3.2
@ngtools/json-schema: 1.2.0
@ngtools/webpack: 1.10.2
@schematics/angular: 0.3.2
@schematics/package-update: 0.3.2
typescript: 2.4.2
webpack: 3.11.0
I have tried to search a lot but didn't find any straight solution. For example this issue posted on github https://github.com/travis-ci/travis-ci/issues/7858 is kind of similar to me but this doesn't provide any concrete solution to this issue.
If anyone can help me to understand the issue and how could solve it then I would be very thankful to you.
Thanks!
unit-testing angular-cli
add a comment |
Currently I am trying to run unit test on my Angular 5 project and it continuously throwing error 'Module not found' for various files mentioned below and I tried to remove node_modules
and done the install
again but error is still the same. I am facing this while trying to running both options i.e ng e2e
and ng test
seperately.
ERROR in ./node_modules/saucelabs/index.js
Module not found: Error: Can't resolve './lib-cov/SauceLabs' in 'C:developmentweb-projectfrontendwebsrcmainangularnode_modulessaucelabs'
ERROR in ./node_modules/protractor/built/bpRunner.js
Module not found: Error: Can't resolve 'child_process' in 'C:developmentweb-projectfrontendweb
d-websrcmainangularnode_modulesprotractorbuilt'
ERROR in ./node_modules/protractor/built/runner.js
Module not found: Error: Can't resolve 'child_process' in 'C:developmentweb-projectfrontendweb
d-websrcmainangularnode_modulesprotractorbuilt'
ERROR in ./node_modules/protractor/built/debugger.js
Module not found: Error: Can't resolve 'child_process' in 'C:developmentweb-projectfrontendweb
d-websrcmainangularnode_modulesprotractorbuilt'
ERROR in ./node_modules/selenium-webdriver/firefox/binary.js
Module not found: Error: Can't resolve 'child_process' in 'C:developmentweb-projectfrontendweb
d-websrcmainangularnode_modulesselenium-webdriverfirefox'
ERROR in ./node_modules/selenium-webdriver/io/exec.js
Module not found: Error: Can't resolve 'child_process' in 'C:developmentweb-projectfrontendweb
d-websrcmainangularnode_modulesselenium-webdriverio'
ERROR in ./node_modules/selenium-webdriver/net/portprober.js
Module not found: Error: Can't resolve 'child_process' in 'C:developmentweb-projectfrontendweb
d-websrcmainangularnode_modulesselenium-webdrivernet'
ERROR in ./node_modules/webdriver-js-extender/node_modules/selenium-webdriver/firefox/binary.js
Module not found: Error: Can't resolve 'child_process' in 'C:developmentweb-projectfrontendweb
d-websrcmainangularnode_moduleswebdriver-js-extendernode_modulesselenium-webdriverfirefox'
ERROR in ./node_modules/webdriver-js-extender/node_modules/selenium-webdriver/io/exec.js
Module not found: Error: Can't resolve 'child_process' in 'C:developmentweb-projectfrontendweb
d-websrcmainangularnode_moduleswebdriver-js-extendernode_modulesselenium-webdriverio'
ERROR in ./node_modules/webdriver-js-extender/node_modules/selenium-webdriver/net/portprober.js
Module not found: Error: Can't resolve 'child_process' in 'C:developmentweb-projectfrontendweb
d-websrcmainangularnode_moduleswebdriver-js-extendernode_modulesselenium-webdrivernet'
ERROR in ./node_modules/protractor/built/debugger.js
Module not found: Error: Can't resolve 'repl' in 'C:developmentweb-projectfrontendwebsrc
mainangularnode_modulesprotractorbuilt'
ERROR in ./node_modules/blocking-proxy/built/lib/bin.js
Module parse failed: Unexpected character '#' (1:0)
You may need an appropriate loader to handle this file type.
| #!/usr/bin/env node
| "use strict";
| Object.defineProperty(exports, "__esModule", { value: true });
I have verified saucelabs
folder under node_modules
and it seems ok.
Here are my installed packages on my windows 7 machine:
Angular CLI: 1.7.4
Node: 6.9.1
OS: win32 x64
Angular: 5.2.11
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router, service-worker
@angular/cdk: 5.2.5
@angular/cli: 1.7.4
@angular-devkit/build-optimizer: 0.3.2
@angular-devkit/core: 0.3.2
@angular-devkit/schematics: 0.3.2
@ngtools/json-schema: 1.2.0
@ngtools/webpack: 1.10.2
@schematics/angular: 0.3.2
@schematics/package-update: 0.3.2
typescript: 2.4.2
webpack: 3.11.0
I have tried to search a lot but didn't find any straight solution. For example this issue posted on github https://github.com/travis-ci/travis-ci/issues/7858 is kind of similar to me but this doesn't provide any concrete solution to this issue.
If anyone can help me to understand the issue and how could solve it then I would be very thankful to you.
Thanks!
unit-testing angular-cli
Currently I am trying to run unit test on my Angular 5 project and it continuously throwing error 'Module not found' for various files mentioned below and I tried to remove node_modules
and done the install
again but error is still the same. I am facing this while trying to running both options i.e ng e2e
and ng test
seperately.
ERROR in ./node_modules/saucelabs/index.js
Module not found: Error: Can't resolve './lib-cov/SauceLabs' in 'C:developmentweb-projectfrontendwebsrcmainangularnode_modulessaucelabs'
ERROR in ./node_modules/protractor/built/bpRunner.js
Module not found: Error: Can't resolve 'child_process' in 'C:developmentweb-projectfrontendweb
d-websrcmainangularnode_modulesprotractorbuilt'
ERROR in ./node_modules/protractor/built/runner.js
Module not found: Error: Can't resolve 'child_process' in 'C:developmentweb-projectfrontendweb
d-websrcmainangularnode_modulesprotractorbuilt'
ERROR in ./node_modules/protractor/built/debugger.js
Module not found: Error: Can't resolve 'child_process' in 'C:developmentweb-projectfrontendweb
d-websrcmainangularnode_modulesprotractorbuilt'
ERROR in ./node_modules/selenium-webdriver/firefox/binary.js
Module not found: Error: Can't resolve 'child_process' in 'C:developmentweb-projectfrontendweb
d-websrcmainangularnode_modulesselenium-webdriverfirefox'
ERROR in ./node_modules/selenium-webdriver/io/exec.js
Module not found: Error: Can't resolve 'child_process' in 'C:developmentweb-projectfrontendweb
d-websrcmainangularnode_modulesselenium-webdriverio'
ERROR in ./node_modules/selenium-webdriver/net/portprober.js
Module not found: Error: Can't resolve 'child_process' in 'C:developmentweb-projectfrontendweb
d-websrcmainangularnode_modulesselenium-webdrivernet'
ERROR in ./node_modules/webdriver-js-extender/node_modules/selenium-webdriver/firefox/binary.js
Module not found: Error: Can't resolve 'child_process' in 'C:developmentweb-projectfrontendweb
d-websrcmainangularnode_moduleswebdriver-js-extendernode_modulesselenium-webdriverfirefox'
ERROR in ./node_modules/webdriver-js-extender/node_modules/selenium-webdriver/io/exec.js
Module not found: Error: Can't resolve 'child_process' in 'C:developmentweb-projectfrontendweb
d-websrcmainangularnode_moduleswebdriver-js-extendernode_modulesselenium-webdriverio'
ERROR in ./node_modules/webdriver-js-extender/node_modules/selenium-webdriver/net/portprober.js
Module not found: Error: Can't resolve 'child_process' in 'C:developmentweb-projectfrontendweb
d-websrcmainangularnode_moduleswebdriver-js-extendernode_modulesselenium-webdrivernet'
ERROR in ./node_modules/protractor/built/debugger.js
Module not found: Error: Can't resolve 'repl' in 'C:developmentweb-projectfrontendwebsrc
mainangularnode_modulesprotractorbuilt'
ERROR in ./node_modules/blocking-proxy/built/lib/bin.js
Module parse failed: Unexpected character '#' (1:0)
You may need an appropriate loader to handle this file type.
| #!/usr/bin/env node
| "use strict";
| Object.defineProperty(exports, "__esModule", { value: true });
I have verified saucelabs
folder under node_modules
and it seems ok.
Here are my installed packages on my windows 7 machine:
Angular CLI: 1.7.4
Node: 6.9.1
OS: win32 x64
Angular: 5.2.11
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router, service-worker
@angular/cdk: 5.2.5
@angular/cli: 1.7.4
@angular-devkit/build-optimizer: 0.3.2
@angular-devkit/core: 0.3.2
@angular-devkit/schematics: 0.3.2
@ngtools/json-schema: 1.2.0
@ngtools/webpack: 1.10.2
@schematics/angular: 0.3.2
@schematics/package-update: 0.3.2
typescript: 2.4.2
webpack: 3.11.0
I have tried to search a lot but didn't find any straight solution. For example this issue posted on github https://github.com/travis-ci/travis-ci/issues/7858 is kind of similar to me but this doesn't provide any concrete solution to this issue.
If anyone can help me to understand the issue and how could solve it then I would be very thankful to you.
Thanks!
unit-testing angular-cli
unit-testing angular-cli
asked Nov 22 at 14:21
tutorialfeed
1451115
1451115
add a comment |
add a comment |
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53432982%2fangular-5-unit-test-dependencies-not-found%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53432982%2fangular-5-unit-test-dependencies-not-found%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown