amazon-archives / aws-cognito-angular-quickstart

An Angular(v5)-based QuickStart single-page app utilizing Amazon Cognito, S3, and DynamoDB (Serverless architecture)
https://cognito.budilov.com
Apache License 2.0
689 stars 302 forks source link

webpack: Failed to compile. #91

Closed chris86 closed 7 years ago

chris86 commented 7 years ago

When I do the step npm start I get the following error

ERROR in multi webpack-dev-server/client?http://localhost:4200 ./src/main.ts Module not found: Error: Can't resolve '@ngtools/webpack' in 'C:\Users\Glen\awsapp' @ multi webpack-dev-server/client?http://localhost:4200 ./src/main.ts webpack: Failed to compile.

I think the error has to do with the project because I just tried another angular template project I got somewhere else and webpack compiles without errors. I reinstalled nodejs , angularcli , changed directory , download the file using git command /using download button ,doing npm cache clean ,run cmd as administrator, .... I keep getting the same error

here is my ng -- version

angular/cli: 1.0.0 node: 8.2.1 os: win32 x64 angular/animations: 4.0.0 angular/common: 4.0.0 angular/compiler: 4.0.0 angular/core: 4.0.0 angular/forms: 4.0.0 angular/http: 4.0.0 angular/platform-browser: 4.0.0 angular/platform-browser-dynamic: 4.0.0 angular/platform-server: 4.0.0 angular/router: 4.0.0 angular/cli: 1.0.0 angular/compiler-cli: 4.0.0

chris86 commented 7 years ago

I had to update my local angular cli it works now