How to fix “Error: Cannot find module 'webpack/lib/dependencies/ContextElementDependency'” in angular2...
You can click here to view a screenshot of the error I'm developing a new web application using .net core and angular2, it's my first code using both methodologies, I'm having the following error, how to solve it.!
"Error: Cannot find module 'webpack/lib/dependencies/ContextElementDependency'
"
I've already tried to reinstall npm and webpack package.
I've delete the (package-lock.json) file.
includes my packages.json :
{
"name": "STS_InternalRequests",
"version": "0.0.0",
"license": "MIT",
"scripts": {
"ng": "ng",
"start": "ng serve --extract-css",
"build": "ng build --extract-css",
"build:ssr": "npm run build -- --app=ssr --output-hashing=media",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/animations": "^5.2.0",
"@angular/common": "^5.2.0",
"@angular/compiler": "^5.2.0",
"@angular/core": "^5.2.0",
"@angular/forms": "^5.2.0",
"@angular/http": "^5.2.0",
"@angular/platform-browser": "^5.2.0",
"@angular/platform-browser-dynamic": "^5.2.0",
"@angular/platform-server": "^5.2.0",
"@angular/router": "^5.2.0",
"@nguniversal/module-map-ngfactory-loader": "^5.0.0-beta.5",
"aspnet-prerendering": "^3.0.1",
"bootstrap": "^3.3.7",
"arrive": "2.3.1",
"bootstrap-notify": "3.1.3",
"core-js": "2.4.1",
"express": "4.15.3",
"jquery": "1.12.4",
"moment": "2.18.1",
"rxjs": "^5.5.6",
"ngbootbox": "0.2.0",
"zone.js": "0.8.4"
},
"devDependencies": {
"@angular/cli": "~1.7.0",
"@angular/compiler-cli": "^5.2.0",
"@angular/language-service": "^5.2.0",
"@types/jasmine": "~2.8.3",
"@types/jasminewd2": "~2.0.2",
"@types/ngbootbox": "0.0.29",
"@types/node": "~6.0.60",
"codelyzer": "^4.0.1",
"jasmine-core": "~2.8.0",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~2.0.0",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "^1.2.1",
"karma-jasmine": "~1.1.0",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "~5.1.2",
"ts-node": "~4.1.0",
"tslint": "~5.9.1",
"typescript": "~2.5.3"
},
"optionalDependencies": {
"node-sass": "^4.9.0"
}
}
I expect the code to run successfully.
angular asp.net-core web-deployment
New contributor
add a comment |
You can click here to view a screenshot of the error I'm developing a new web application using .net core and angular2, it's my first code using both methodologies, I'm having the following error, how to solve it.!
"Error: Cannot find module 'webpack/lib/dependencies/ContextElementDependency'
"
I've already tried to reinstall npm and webpack package.
I've delete the (package-lock.json) file.
includes my packages.json :
{
"name": "STS_InternalRequests",
"version": "0.0.0",
"license": "MIT",
"scripts": {
"ng": "ng",
"start": "ng serve --extract-css",
"build": "ng build --extract-css",
"build:ssr": "npm run build -- --app=ssr --output-hashing=media",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/animations": "^5.2.0",
"@angular/common": "^5.2.0",
"@angular/compiler": "^5.2.0",
"@angular/core": "^5.2.0",
"@angular/forms": "^5.2.0",
"@angular/http": "^5.2.0",
"@angular/platform-browser": "^5.2.0",
"@angular/platform-browser-dynamic": "^5.2.0",
"@angular/platform-server": "^5.2.0",
"@angular/router": "^5.2.0",
"@nguniversal/module-map-ngfactory-loader": "^5.0.0-beta.5",
"aspnet-prerendering": "^3.0.1",
"bootstrap": "^3.3.7",
"arrive": "2.3.1",
"bootstrap-notify": "3.1.3",
"core-js": "2.4.1",
"express": "4.15.3",
"jquery": "1.12.4",
"moment": "2.18.1",
"rxjs": "^5.5.6",
"ngbootbox": "0.2.0",
"zone.js": "0.8.4"
},
"devDependencies": {
"@angular/cli": "~1.7.0",
"@angular/compiler-cli": "^5.2.0",
"@angular/language-service": "^5.2.0",
"@types/jasmine": "~2.8.3",
"@types/jasminewd2": "~2.0.2",
"@types/ngbootbox": "0.0.29",
"@types/node": "~6.0.60",
"codelyzer": "^4.0.1",
"jasmine-core": "~2.8.0",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~2.0.0",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "^1.2.1",
"karma-jasmine": "~1.1.0",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "~5.1.2",
"ts-node": "~4.1.0",
"tslint": "~5.9.1",
"typescript": "~2.5.3"
},
"optionalDependencies": {
"node-sass": "^4.9.0"
}
}
I expect the code to run successfully.
angular asp.net-core web-deployment
New contributor
Can you show us some additional information? As an image of the error screen or the error log itself?
– Caio Ladislau
2 days ago
@CaioLadislau I've updated my question, you can follow the link to view the image :)
– ala'a alhawamdeh
2 days ago
Try this: github.com/angular/angular-cli/issues/…
– Caio Ladislau
2 days ago
@CaioLadislau thank you, already tried, but it's not working.
– ala'a alhawamdeh
2 days ago
add a comment |
You can click here to view a screenshot of the error I'm developing a new web application using .net core and angular2, it's my first code using both methodologies, I'm having the following error, how to solve it.!
"Error: Cannot find module 'webpack/lib/dependencies/ContextElementDependency'
"
I've already tried to reinstall npm and webpack package.
I've delete the (package-lock.json) file.
includes my packages.json :
{
"name": "STS_InternalRequests",
"version": "0.0.0",
"license": "MIT",
"scripts": {
"ng": "ng",
"start": "ng serve --extract-css",
"build": "ng build --extract-css",
"build:ssr": "npm run build -- --app=ssr --output-hashing=media",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/animations": "^5.2.0",
"@angular/common": "^5.2.0",
"@angular/compiler": "^5.2.0",
"@angular/core": "^5.2.0",
"@angular/forms": "^5.2.0",
"@angular/http": "^5.2.0",
"@angular/platform-browser": "^5.2.0",
"@angular/platform-browser-dynamic": "^5.2.0",
"@angular/platform-server": "^5.2.0",
"@angular/router": "^5.2.0",
"@nguniversal/module-map-ngfactory-loader": "^5.0.0-beta.5",
"aspnet-prerendering": "^3.0.1",
"bootstrap": "^3.3.7",
"arrive": "2.3.1",
"bootstrap-notify": "3.1.3",
"core-js": "2.4.1",
"express": "4.15.3",
"jquery": "1.12.4",
"moment": "2.18.1",
"rxjs": "^5.5.6",
"ngbootbox": "0.2.0",
"zone.js": "0.8.4"
},
"devDependencies": {
"@angular/cli": "~1.7.0",
"@angular/compiler-cli": "^5.2.0",
"@angular/language-service": "^5.2.0",
"@types/jasmine": "~2.8.3",
"@types/jasminewd2": "~2.0.2",
"@types/ngbootbox": "0.0.29",
"@types/node": "~6.0.60",
"codelyzer": "^4.0.1",
"jasmine-core": "~2.8.0",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~2.0.0",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "^1.2.1",
"karma-jasmine": "~1.1.0",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "~5.1.2",
"ts-node": "~4.1.0",
"tslint": "~5.9.1",
"typescript": "~2.5.3"
},
"optionalDependencies": {
"node-sass": "^4.9.0"
}
}
I expect the code to run successfully.
angular asp.net-core web-deployment
New contributor
You can click here to view a screenshot of the error I'm developing a new web application using .net core and angular2, it's my first code using both methodologies, I'm having the following error, how to solve it.!
"Error: Cannot find module 'webpack/lib/dependencies/ContextElementDependency'
"
I've already tried to reinstall npm and webpack package.
I've delete the (package-lock.json) file.
includes my packages.json :
{
"name": "STS_InternalRequests",
"version": "0.0.0",
"license": "MIT",
"scripts": {
"ng": "ng",
"start": "ng serve --extract-css",
"build": "ng build --extract-css",
"build:ssr": "npm run build -- --app=ssr --output-hashing=media",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/animations": "^5.2.0",
"@angular/common": "^5.2.0",
"@angular/compiler": "^5.2.0",
"@angular/core": "^5.2.0",
"@angular/forms": "^5.2.0",
"@angular/http": "^5.2.0",
"@angular/platform-browser": "^5.2.0",
"@angular/platform-browser-dynamic": "^5.2.0",
"@angular/platform-server": "^5.2.0",
"@angular/router": "^5.2.0",
"@nguniversal/module-map-ngfactory-loader": "^5.0.0-beta.5",
"aspnet-prerendering": "^3.0.1",
"bootstrap": "^3.3.7",
"arrive": "2.3.1",
"bootstrap-notify": "3.1.3",
"core-js": "2.4.1",
"express": "4.15.3",
"jquery": "1.12.4",
"moment": "2.18.1",
"rxjs": "^5.5.6",
"ngbootbox": "0.2.0",
"zone.js": "0.8.4"
},
"devDependencies": {
"@angular/cli": "~1.7.0",
"@angular/compiler-cli": "^5.2.0",
"@angular/language-service": "^5.2.0",
"@types/jasmine": "~2.8.3",
"@types/jasminewd2": "~2.0.2",
"@types/ngbootbox": "0.0.29",
"@types/node": "~6.0.60",
"codelyzer": "^4.0.1",
"jasmine-core": "~2.8.0",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~2.0.0",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "^1.2.1",
"karma-jasmine": "~1.1.0",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "~5.1.2",
"ts-node": "~4.1.0",
"tslint": "~5.9.1",
"typescript": "~2.5.3"
},
"optionalDependencies": {
"node-sass": "^4.9.0"
}
}
I expect the code to run successfully.
angular asp.net-core web-deployment
angular asp.net-core web-deployment
New contributor
New contributor
edited 2 days ago
New contributor
asked 2 days ago
ala'a alhawamdeh
12
12
New contributor
New contributor
Can you show us some additional information? As an image of the error screen or the error log itself?
– Caio Ladislau
2 days ago
@CaioLadislau I've updated my question, you can follow the link to view the image :)
– ala'a alhawamdeh
2 days ago
Try this: github.com/angular/angular-cli/issues/…
– Caio Ladislau
2 days ago
@CaioLadislau thank you, already tried, but it's not working.
– ala'a alhawamdeh
2 days ago
add a comment |
Can you show us some additional information? As an image of the error screen or the error log itself?
– Caio Ladislau
2 days ago
@CaioLadislau I've updated my question, you can follow the link to view the image :)
– ala'a alhawamdeh
2 days ago
Try this: github.com/angular/angular-cli/issues/…
– Caio Ladislau
2 days ago
@CaioLadislau thank you, already tried, but it's not working.
– ala'a alhawamdeh
2 days ago
Can you show us some additional information? As an image of the error screen or the error log itself?
– Caio Ladislau
2 days ago
Can you show us some additional information? As an image of the error screen or the error log itself?
– Caio Ladislau
2 days ago
@CaioLadislau I've updated my question, you can follow the link to view the image :)
– ala'a alhawamdeh
2 days ago
@CaioLadislau I've updated my question, you can follow the link to view the image :)
– ala'a alhawamdeh
2 days ago
Try this: github.com/angular/angular-cli/issues/…
– Caio Ladislau
2 days ago
Try this: github.com/angular/angular-cli/issues/…
– Caio Ladislau
2 days ago
@CaioLadislau thank you, already tried, but it's not working.
– ala'a alhawamdeh
2 days ago
@CaioLadislau thank you, already tried, but it's not working.
– ala'a alhawamdeh
2 days ago
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
});
}
});
ala'a alhawamdeh is a new contributor. Be nice, and check out our Code of Conduct.
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%2f53945517%2fhow-to-fix-error-cannot-find-module-webpack-lib-dependencies-contextelementde%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
ala'a alhawamdeh is a new contributor. Be nice, and check out our Code of Conduct.
ala'a alhawamdeh is a new contributor. Be nice, and check out our Code of Conduct.
ala'a alhawamdeh is a new contributor. Be nice, and check out our Code of Conduct.
ala'a alhawamdeh is a new contributor. Be nice, and check out our Code of Conduct.
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%2f53945517%2fhow-to-fix-error-cannot-find-module-webpack-lib-dependencies-contextelementde%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
Can you show us some additional information? As an image of the error screen or the error log itself?
– Caio Ladislau
2 days ago
@CaioLadislau I've updated my question, you can follow the link to view the image :)
– ala'a alhawamdeh
2 days ago
Try this: github.com/angular/angular-cli/issues/…
– Caio Ladislau
2 days ago
@CaioLadislau thank you, already tried, but it's not working.
– ala'a alhawamdeh
2 days ago