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

JSPool watching entire user directory? #253

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

Comments

Projects
None yet
3 participants
@mcintyre321
Copy link

mcintyre321 commented Apr 12, 2016

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 Daniel15 added the Bug label Apr 18, 2016

Daniel15 added a commit that referenced this issue Apr 18, 2016

@Daniel15

This comment has been minimized.

Copy link
Member

Daniel15 commented Apr 18, 2016

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

This comment has been minimized.

Copy link
Member

Daniel15 commented Oct 10, 2016

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

@Daniel15 Daniel15 closed this Oct 10, 2016

@Daxito

This comment has been minimized.

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