aspnet-webpack: webpack dev middleware failed to run #1513

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

Originally created by @SergeyRudakov on 7/14/2016

When I tried to run app in the dev mode, I've got the following exception:

Call to Node module failed with error: To use webpack dev middleware, you must install the 'aspnet-webpack' NPM package.

In this code block:

if (env.IsDevelopment()) {
                app.UseWebpackDevMiddleware(
                    new WebpackDevMiddlewareOptions
                    {
                        HotModuleReplacement = true
                    }
            );
 }

aspnet-webpack is installed and app is working all right in production mode. How to enable dev middleware?
Can I enable source map debugging (TypeScript)?

*Originally created by @SergeyRudakov on 7/14/2016* When I tried to run app in the dev mode, I've got the following exception: > Call to Node module failed with error: To use webpack dev middleware, you must install the 'aspnet-webpack' NPM package. In this code block: ``` if (env.IsDevelopment()) { app.UseWebpackDevMiddleware( new WebpackDevMiddlewareOptions { HotModuleReplacement = true } ); } ``` aspnet-webpack is installed and app is working all right in production mode. How to enable dev middleware? Can I enable source map debugging (TypeScript)?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#1513
No description provided.