Cannot open client bundle after a few HMR reloads on Windows in VS 2017 #832

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

Originally created by @markthiessen on 4/13/2017

Microsoft.AspNetCore.NodeServices:Error: Error: EBUSY: resource busy or locked, open 'C:\source\xxxxxx\src\Web\wwwroot\dist\main-client.js'
    at Object.fs.openSync (fs.js:584:18)
    at Object.fs.writeFileSync (fs.js:1316:33)
    at C:\source\xxxxxx\src\Web\node_modules\aspnet-webpack\WebpackDevMiddleware.js:138:20
    at Array.forEach (native)
    at copyRecursiveToRealFsSync (C:\source\xxxxxx\src\Web\node_modules\aspnet-webpack\WebpackDevMiddleware.js:131:31)
    at C:\source\xxxxxx\src\Web\node_modules\aspnet-webpack\WebpackDevMiddleware.js:144:17
    at Array.forEach (native)
    at copyRecursiveToRealFsSync (C:\source\xxxxxx\src\Web\node_modules\aspnet-webpack\WebpackDevMiddleware.js:131:31)
    at C:\source\xxxxxx\src\Web\node_modules\aspnet-webpack\WebpackDevMiddleware.js:144:17
    at Array.forEach (native)

After working for a couple minutes and triggering a few HM reloads, my app starts failing with this error in debug output. I haven't so far been able to determine what it could be..

If I restart the app, it will build and run again for just a couple of HMRs.

*Originally created by @markthiessen on 4/13/2017* ```Microsoft.AspNetCore.NodeServices:Information: webpack building... Microsoft.AspNetCore.NodeServices:Error: Error: EBUSY: resource busy or locked, open 'C:\source\xxxxxx\src\Web\wwwroot\dist\main-client.js' at Object.fs.openSync (fs.js:584:18) at Object.fs.writeFileSync (fs.js:1316:33) at C:\source\xxxxxx\src\Web\node_modules\aspnet-webpack\WebpackDevMiddleware.js:138:20 at Array.forEach (native) at copyRecursiveToRealFsSync (C:\source\xxxxxx\src\Web\node_modules\aspnet-webpack\WebpackDevMiddleware.js:131:31) at C:\source\xxxxxx\src\Web\node_modules\aspnet-webpack\WebpackDevMiddleware.js:144:17 at Array.forEach (native) at copyRecursiveToRealFsSync (C:\source\xxxxxx\src\Web\node_modules\aspnet-webpack\WebpackDevMiddleware.js:131:31) at C:\source\xxxxxx\src\Web\node_modules\aspnet-webpack\WebpackDevMiddleware.js:144:17 at Array.forEach (native) ``` After working for a couple minutes and triggering a few HM reloads, my app starts failing with this error in debug output. I haven't so far been able to determine what it could be.. If I restart the app, it will build and run again for just a couple of HMRs.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#832
No description provided.