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

Skip to content

setTimeout is undefined even when using ChakraCore js engine #557

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
tavisca-prathod opened this issue Jun 26, 2018 · 1 comment
Closed

Comments

@tavisca-prathod
Copy link

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);
            });
}

@dustinsoftware
Copy link
Member

@tavisca-prathod that sounds a lot like #555, please try pinning react and react-dom to 16.4.0 until we can ship a fix on our end, or until React itself ships a new version

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

No branches or pull requests

2 participants