Skip to content

Cannot force to use Chakra engine instead of VroomJs #379

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
ORuban opened this issue Feb 24, 2017 · 3 comments
Closed

Cannot force to use Chakra engine instead of VroomJs #379

ORuban opened this issue Feb 24, 2017 · 3 comments

Comments

@ORuban
Copy link

ORuban commented Feb 24, 2017

I have added the following code before app.UseReact(...)

var engineSwitcher = JsEngineSwitcher.Instance;
engineSwitcher.EngineFactories.Clear();
engineSwitcher.EngineFactories.AddChakraCore();
engineSwitcher.DefaultEngineName = ChakraCoreJsEngine.EngineName;

but still see Failed to initialise VroomJs error in logs.

@ORuban ORuban changed the title Force to use Chakra engine instead of V8 Force to use Chakra engine instead of VroomJs Feb 24, 2017
@ORuban ORuban changed the title Force to use Chakra engine instead of VroomJs Cannot force to use Chakra engine instead of VroomJs Feb 24, 2017
@Daniel15
Copy link
Member

I think you can just ignore that error, it should still be using Chakra.

@ORuban
Copy link
Author

ORuban commented Feb 24, 2017

I cannot ignore error as it is an unhandled exception in React.AspNet.BabelFileMiddleware and pipeline stops executing

An unhandled exception has occurred: Unable to resolve type: React.ReactEnvironment
React.TinyIoC.TinyIoCResolutionException: Unable to resolve type: React.ReactEnvironment ---> React.TinyIoC.TinyIoCResolutionException: Unable to resolve type: React.JavaScriptEngineFactory ---> React.Exceptions.VroomJsInitialisationException: Failed to initialise VroomJs.

@dustinsoftware
Copy link
Member

Closing issues older than a year, please re-open if you think this is still relevant.

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

3 participants