Skip to content

JSPool watching entire user directory? #253

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mcintyre321 opened this issue Apr 12, 2016 · 3 comments
Closed

JSPool watching entire user directory? #253

mcintyre321 opened this issue Apr 12, 2016 · 3 comments
Labels

Comments

@mcintyre321
Copy link

I've been using the Owin demo app as a base for my own project, and although everything is working, the console for the app is full of 100s of messages like

JSPool] Watched file '[JSPool] Watched file '/\Users\Harry\AppData\Local\Google\Chrome\User Data\Default\Cookies-journal' changed'.

It seems to be watching my entire user directory.

Given that I'm using


            var contentFileSystem = new PhysicalFileSystem(@"..\..\Content");
            obj.UseBabel(new BabelFileOptions()
            {
                StaticFileOptions = new StaticFileOptions()
                {
                    FileSystem = contentFileSystem,
                },
            });
            obj.UseFileServer(new FileServerOptions() { FileSystem = contentFileSystem });

shouldn't it only be watching under my Content directory? Apologies if this is user error somewhere!

@Daniel15
Copy link
Member

This may be fixed by f450bac. Could you please try it out and let me know if that fixes it? The build should be available on the development server shortly (see http://reactjs.net/getting-started/download.html#development-builds for instructions).

@Daniel15
Copy link
Member

Please let me know if you still encounter this, it should have been fixed in ReactJS.NET 2.4.0

@Daxito
Copy link

Daxito commented Nov 4, 2017

This is still an issue for me, using React.Net 3.1.0 like this, am I missing something? Thanks

Public Sub ConfigureAuth(app As IAppBuilder)
Dim contentFileSystem = New PhysicalFileSystem(HttpContext.Current.Server.MapPath("Content"))
app.UseBabel(New BabelFileOptions() With
{
.StaticFileOptions = New StaticFileOptions() With
{
.FileSystem = contentFileSystem
}
})
app.UseFileServer(New FileServerOptions() With {.FileSystem = contentFileSystem})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants