reactjs / React.NET

.NET library for JSX compilation and server-side rendering of React components
https://reactjs.net/
MIT License
2.28k stars 940 forks source link

The futex facility returned an unexpected error code in Ubuntu #1282

Closed sanme98 closed 2 years ago

sanme98 commented 2 years ago

Please verify these steps before filing an issue, and check them off as you go

I'm using these library versions:

Runtime environment:

Steps to reproduce

dotnet new reactnet-vanilla
dotnet run

Run the template project directly without any changes, then browse it in browser, it will have the error in console with This site can’t be reached error in browser.

sanme98 commented 2 years ago

Hi, found it can be resolved by switch to V8 engine. Thanks.

//services.AddJsEngineSwitcher(options => options.DefaultEngineName = ChakraCoreJsEngine.EngineName)
//  .AddChakraCore();

services.AddJsEngineSwitcher(options => options.DefaultEngineName = V8JsEngine.EngineName)
    .AddV8();