Skip to content

Updating JavaScriptEngineSwitcher to latest 2.0.0 breaks Babel bundles #319

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
badiuoanaalexandra opened this issue Sep 20, 2016 · 1 comment

Comments

@badiuoanaalexandra
Copy link

I am using System.Web.Optimization.React to minify my jsx files. I just ugraded JavaScriptEngineSwitcher packages to 2.0.0 and now the bundles don't work anymore.

[MissingMethodException: Method not found: 'JavaScriptEngineSwitcher.Core.JsEngineSwitcher JavaScriptEngineSwitcher.Core.JsEngineSwitcher.get_Current()'.]
JSPool.JsPoolConfig..ctor() +0
React.JavaScriptEngineFactory.CreatePool() +146
React.JavaScriptEngineFactory..ctor(IEnumerable`1 availableFactories, IReactSiteConfiguration config, IFileSystem fileSystem) +109
lambda_method(Closure , Object[] ) +112
React.TinyIoC.TinyIoCContainer.ConstructType(Type requestedType, Type implementationType, ConstructorInfo constructor, NamedParameterOverloads parameters, ResolveOptions options) +682

[TinyIoCResolutionException: Unable to resolve type: React.JavaScriptEngineFactory]
React.TinyIoC.TinyIoCContainer.ConstructType(Type requestedType, Type implementationType, ConstructorInfo constructor, NamedParameterOverloads parameters, ResolveOptions options) +717
React.TinyIoC.SingletonFactory.GetObject(Type requestedType, TinyIoCContainer container, NamedParameterOverloads parameters, ResolveOptions options) +122
React.TinyIoC.TinyIoCContainer.ResolveInternal(TypeRegistration registration, NamedParameterOverloads parameters, ResolveOptions options) +85
React.TinyIoC.TinyIoCContainer.ConstructType(Type requestedType, Type implementationType, ConstructorInfo constructor, NamedParameterOverloads parameters, ResolveOptions options) +386

[TinyIoCResolutionException: Unable to resolve type: React.ReactEnvironment]

@Daniel15
Copy link
Member

ReactJS.NET does not yet support JavaScriptEngineSwitcher 2.0. The API has breaking changes, so you'll have to wait for #306 to be closed and a new major version of ReactJS.NET to be pushed before upgrading. I'm currently working on that so it should be available soon.

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