This repository was archived by the owner on Apr 8, 2020. It is now read-only.
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) {
4
4
try {
5
5
aspNetPrerendering = require ( 'aspnet-prerendering' ) ;
6
6
} 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 ) ;
8
11
return ;
9
12
}
10
13
Original file line number Diff line number Diff line change @@ -4,7 +4,10 @@ module.exports.createWebpackDevServer = function (callback) {
4
4
try {
5
5
aspNetWebpack = require ( 'aspnet-webpack' ) ;
6
6
} 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 ) ;
8
11
return ;
9
12
}
10
13
You can’t perform that action at this time.
0 commit comments