File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
src/Microsoft.AspNetCore.SpaServices/Content/Node Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,10 @@ module.exports.renderToString = function (callback){
44try {
55aspNetPrerendering = require ( 'aspnet-prerendering' ) ;
66} catch ( ex ) {
7- callback ( 'To use prerendering, you must install the \'aspnet-prerendering\' NPM package.' ) ;
7+ // Developers sometimes have trouble with badly-configured Node installations, where it's unable
8+ // to find node_modules. Or they accidentally fail to deploy node_modules, or even to run 'npm install'.
9+ // Make sure such errors are reported back to the .NET part of the app.
10+ callback ( 'Prerendering failed because of an error while loading \'aspnet-prerendering\'. Error was: ' + ex . stack ) ;
811return ;
912}
1013
Original file line number Diff line number Diff line change @@ -4,7 +4,10 @@ module.exports.createWebpackDevServer = function (callback){
44try {
55aspNetWebpack = require ( 'aspnet-webpack' ) ;
66} catch ( ex ) {
7- callback ( 'To use webpack dev middleware, you must install the \'aspnet-webpack\' NPM package.' ) ;
7+ // Developers sometimes have trouble with badly-configured Node installations, where it's unable
8+ // to find node_modules. Or they accidentally fail to deploy node_modules, or even to run 'npm install'.
9+ // Make sure such errors are reported back to the .NET part of the app.
10+ callback ( 'Webpack dev middleware failed because of an error while loading \'aspnet-webpack\'. Error was: ' + ex . stack ) ;
811return ;
912}
1013
You can’t perform that action at this time.
0 commit comments