WebpackDevMiddleware does not work with async webpack config (with promises) #305

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

Originally created by @Sky4CE on 11/30/2017

I have webpack config in my project configured in a way that it exports promise:
module.exports = commonConfigPromise
this is need as I do async(IO) operations during config. It works fine when I build project using npm, but it fails when aspnet build it using WebpackDevMiddleware with this error:
image

*Originally created by @Sky4CE on 11/30/2017* I have webpack config in my project configured in a way that it exports promise: `module.exports = commonConfigPromise` this is need as I do async(IO) operations during config. It works fine when I build project using npm, but it fails when aspnet build it using WebpackDevMiddleware with this error: ![image](https://user-images.githubusercontent.com/9821633/33439954-6f0b2aae-d5f7-11e7-8131-5d556764d9fd.png)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#305
No description provided.