[SOLVED] ReactJS.NET – Bundles – TinyIoCResolutionException: Unable to resolve type: React.IReactEnvironment


I’m attempting to minify my .JSX files with ASP.NET Minification and Optimization via System.Web.Optimization.React. I’ve installed the MVC4 React Package as well as the Optimization package, but whenever I try to include a bundle I get the following:

React.TinyIoC.TinyIoCResolutionException: Unable to resolve type: React.IReactEnvironment

The InnerException is always null

My bundles are setup as follows:

bundles.Add(new ScriptBundle("~/Bundle/Scripts/ReactJS").Include(

        bundles.Add(new JsxBundle("~/Bundle/Scripts/ReactCalendar").Include(

And included in the view as:

@section scripts{

The error is always thrown on line:


Anyone got any ideas on how to solve / debug this one? Let me know if more info is needed.


Unable to resolve type: React.IReactEnvironment” with no InnerException generally means ReactJS.NET is not initialising properly for some reason. In web apps, ReactJS.NET handles initialisation through the use of WebActivator. Make sure your project is referencing React.Web, React.Web.Mvc4 and WebActivatorEx, and all the corresponding .dll files are ending up in your app’s bin directory.

Also, you do not need to (and should not) include JSXTransformer in your JavaScript bundles, as ReactJS.NET does all the JSX compilation server-side.

Answered By – Daniel Lo Nigro

Answer Checked By – Timothy Miller (BugsFixing Admin)

Leave a Reply

Your email address will not be published. Required fields are marked *