angular-identity-aspnetcore-security icon indicating copy to clipboard operation
angular-identity-aspnetcore-security copied to clipboard

Error while building npm

Open imtiazahmeddahar opened this issue 2 years ago • 3 comments

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

imtiazahmeddahar avatar Aug 31 '22 07:08 imtiazahmeddahar

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.

CodeMazeBlog avatar Aug 31 '22 14:08 CodeMazeBlog

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

imtiazahmeddahar avatar Sep 01 '22 04:09 imtiazahmeddahar

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

CodeMazeBlog avatar Sep 01 '22 05:09 CodeMazeBlog