Thanks to visit codestin.com
Credit goes to github.com

Skip to content

setTimeout is undefined even when using ChakraCore js engine #557

Closed
@tavisca-prathod

Description

@tavisca-prathod

I am using 'react-json-view' to display json.
whenever I try to use react-json-view in any one of my components I get this error -
'setTimeout' is not defined at Anonymous function
Below are my ConfigureService and Configure methods.

 public IServiceProvider ConfigureServices(IServiceCollection services)
        {
            services.AddJsEngineSwitcher(options => options.DefaultEngineName = ChakraCoreJsEngine.EngineName)
            .AddChakraCore();

            services.AddReact();
}

 public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
        {
            app.UseReact(config => 
            {
                config
                .SetLoadBabel(false)
                .AddScriptWithoutTransform("~/build/server.bundle.js")
                .SetReuseJavaScriptEngines(false);
            });
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions