Reputation: 610
Created a ASP.Net Core 3 web app with React using Visual Studio 2019. When I try to run the application in visual studio, I am seeing the following error.
I tried running Visual Studio as administrator, but did not help.
Failed to compile.
Microsoft.AspNetCore.SpaServices: Information: ./src/index.js
Microsoft.AspNetCore.SpaServices: Error: Error from chokidar (C:): Error: EBUSY: resource busy or locked, lstat 'C:\hiberfil.sys'
Microsoft.AspNetCore.SpaServices: Error: Error from chokidar (C:): Error: EBUSY: resource busy or locked, lstat 'C:\pagefile.sys'
Upvotes: 0
Views: 441
Reputation: 610
I navigated to the folder "ClientApp" using command prompt. Deleted node_modules folder.
Then when I run the project from Visual Studio, no error seen.
Upvotes: 1