Running musicstore angular2 sample causes exception - Cannot find module JavaScriptServices\samples\angular\MusicStore\wwwroot\ng-app\boot-server #1406

Closed
opened 2025-08-09 17:20:01 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @CraftyFella on 9/1/2016

Hi,

I followed the instructions on how to get the sample application working I.e.

  • Clone this repo
  • Change directory to the same you want to run (e.g., cd samples/angular/MusicStore)
  • Restore dependencies (run dotnet restore and npm install)
  • Run the application (dotnet run)
  • Browse to http://localhost:5000

But I end up with the following exception:

An unhandled exception occurred while processing the request.

Exception: Call to Node module failed with error: Error: Cannot find module 'C:\code\github\JavaScriptServices\samples\angular\MusicStore\wwwroot\ng-app\boot-server'
at Function.Module._resolveFilename (module.js:455:15)
at Function.Module._load (module.js:403:25)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at findBootModule (C:\code\github\JavaScriptServices\samples\angular\MusicStore\node_modules\aspnet-prerendering\Prerendering.js:71:24)
at findBootFunc (C:\code\github\JavaScriptServices\samples\angular\MusicStore\node_modules\aspnet-prerendering\Prerendering.js:76:5)
at renderToString (C:\code\github\JavaScriptServices\samples\angular\MusicStore\node_modules\aspnet-prerendering\Prerendering.js:9:5)
at module.exports.renderToString (C:\Users\dave_\AppData\Local\Temp\tmpF280.tmp:11:46)
at C:\Users\dave_\AppData\Local\Temp\tmpF290.tmp:110:19
at IncomingMessage.<anonymous> (C:\Users\dave_\AppData\Local\Temp\tmpF290.tmp:130:35)
MoveNext in HttpNodeInstance.cs, line 71

Any ideas what I'm doing wrong?

*Originally created by @CraftyFella on 9/1/2016* Hi, I followed the instructions on how to get the sample application working I.e. - Clone this repo - Change directory to the same you want to run (e.g., cd samples/angular/MusicStore) - Restore dependencies (run dotnet restore and npm install) - Run the application (dotnet run) - Browse to http://localhost:5000 But I end up with the following exception: An unhandled exception occurred while processing the request. ``` Exception: Call to Node module failed with error: Error: Cannot find module 'C:\code\github\JavaScriptServices\samples\angular\MusicStore\wwwroot\ng-app\boot-server' at Function.Module._resolveFilename (module.js:455:15) at Function.Module._load (module.js:403:25) at Module.require (module.js:483:17) at require (internal/module.js:20:19) at findBootModule (C:\code\github\JavaScriptServices\samples\angular\MusicStore\node_modules\aspnet-prerendering\Prerendering.js:71:24) at findBootFunc (C:\code\github\JavaScriptServices\samples\angular\MusicStore\node_modules\aspnet-prerendering\Prerendering.js:76:5) at renderToString (C:\code\github\JavaScriptServices\samples\angular\MusicStore\node_modules\aspnet-prerendering\Prerendering.js:9:5) at module.exports.renderToString (C:\Users\dave_\AppData\Local\Temp\tmpF280.tmp:11:46) at C:\Users\dave_\AppData\Local\Temp\tmpF290.tmp:110:19 at IncomingMessage.<anonymous> (C:\Users\dave_\AppData\Local\Temp\tmpF290.tmp:130:35) MoveNext in HttpNodeInstance.cs, line 71 ``` Any ideas what I'm doing wrong?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#1406
No description provided.