angular-identity-aspnetcore-security
angular-identity-aspnetcore-security copied to clipboard
Error while building npm
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
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.
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)
Maybe I just can't see it on the image, but you are using npm start and not npm install.