user2347528
user2347528

Reputation: 610

ASP.Net Core 3 + React Web App - Seeing the resource busy error

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

Answers (1)

user2347528
user2347528

Reputation: 610

I navigated to the folder "ClientApp" using command prompt. Deleted node_modules folder.

  1. Ran npm install

Then when I run the project from Visual Studio, no error seen.

Upvotes: 1

Related Questions