telosys-templates-v3 / angular4-rest-frontend

REST frontend with Angular 4 and TypeScript
2 stars 2 forks source link

Getting Cannot read property 'thisCompilation' of undefined #2

Open manojadams opened 6 years ago

manojadams commented 6 years ago

Hi Imad El Hitti,

Getting the following problem with ng serve commond (with the angular project created from the templates):

Cannot read property 'thisCompilation' of undefined

Can you please give me the versions of webpack and angular cli installed in your system.

My webpack version is 4.7.0 and angular cli version is 1.7.4.

Thanks, Manoj Baruah

manojadams commented 6 years ago

Hi Imad El Hitti,

I am finally able to resolve all the errors and get my angular project to working. Following is the package.json file with which I got it working at last:

{ "name": "angular4-rest-frontend", "version": "0.1.0", "license": "MIT", "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e" }, "private": true, "dependencies": { "@angular/animations": "^4.2.3", "@angular/cdk": "2.0.0-beta.10", "@angular/common": "^4.2.3", "@angular/compiler": "^4.2.3", "@angular/core": "^4.2.3", "@angular/forms": "^4.2.3", "@angular/http": "^4.2.3", "@angular/material": "2.0.0-beta.10", "@angular/platform-browser": "^4.2.3", "@angular/platform-browser-dynamic": "^4.2.3", "@angular/router": "^4.2.3", "@types/underscore": "^1.8.0", "angular2-notifications": "^0.7.3", "core-js": "^2.4.1", "hammerjs": "^2.0.8", "material-design-lite": "^1.3.0", "rxjs": "^5.1.0", "underscore": "^1.8.3", "webpack": "^3.11.0", "zone.js": "^0.8.4" }, "devDependencies": { "@angular/cli": "1.1.2", "@angular/compiler-cli": "4.2.3", "@types/jasmine": "2.5.38", "@types/node": "~6.0.60", "codelyzer": "~2.0.0", "jasmine-core": "~2.5.2", "jasmine-spec-reporter": "~3.2.0", "karma": "~1.4.1", "karma-chrome-launcher": "~2.0.0", "karma-cli": "~1.0.1", "karma-coverage-istanbul-reporter": "^0.2.0", "karma-jasmine": "~1.1.0", "karma-jasmine-html-reporter": "^0.2.2", "protractor": "~5.1.0", "ts-node": "~2.0.0", "tslint": "~4.5.0", "typescript": "~2.2.0" } }

Thanks, Manoj