CodeMazeBlog / angular-identity-aspnetcore-security

This repo contains the source code for the "Angular Security with ASP.NET Core Identity" series of articles on "Code Maze"
MIT License
50 stars 52 forks source link

Error while building npm #3

Open imtiazahmeddahar opened 2 years ago

imtiazahmeddahar commented 2 years ago

I am new to angular and I have clone this project, however, I was able to successfully compiled ASP.Net Core WebApi while having an issue with angular app.

When I try to build I see below error:

An unhandled exception occurred: Unexpected end of input See "C:\Users[user]\AppData\Local\Temp\ng-quVW8k\angular-errors.log" for further details.

and in above log file has: [error] SyntaxError: Unexpected end of input at ESMLoader.moduleStrategy (node:internal/modules/esm/translators:119:18) at ESMLoader.moduleProvider (node:internal/modules/esm/loader:475:14)

Node: v16.17.0 NPM: 8.15.0

Angular (Global): 13.3.9 Angular (Local): 13.3.5

CodeMazeBlog commented 2 years ago

I am not sure about these errors, but as much as I am aware of what needs to be done, all you have to do is to run npm install in the angular project to install all the npm packages and Angular should be good to go. Just open the project in VS Code and run the command. Once all installed, just run ng serve -o. If you did all of these, I really have no idea why the issue exists.

imtiazahmeddahar commented 2 years ago

still getting same error,

[error] SyntaxError: Unexpected end of input at ESMLoader.moduleStrategy (node:internal/modules/esm/translators:119:18) at ESMLoader.moduleProvider (node:internal/modules/esm/loader:475:14)

image

image

CodeMazeBlog commented 2 years ago

Maybe I just can't see it on the image, but you are using npm start and not npm install.