Skip to content

Unable to resolve type: React.ReactEnvironmentUnable to resolve type #410

Closed
@mattgross76

Description

@mattgross76

Hello, I am able to reference a .jsx file from a page when running in debug mode on my local machine. If, however, I switch to IIS Express in debug mode, I begin to notice 500 errors when inspecting the generated page.

This problem also occurs when I perform "Start without debugging."

Lastly, when deploying to Windows Azure via automated VSTS builds, I also receive the 500 errors when inspecting the page where my .jsx component should be. I am able to obtain the following details from Azure application insights:

ERROR:
Unable to resolve type: React.ReactEnvironmentUnable to resolve type: React.JavaScriptEngineFactoryNo usable JavaScript engine was found. Please install a JavaScript engine such as React.JavaScriptEngine.ClearScriptV8 (on Windows) or React.JavaScriptEngine.VroomJs (on Linux and Mac OS X). Refer to the ReactJS.NET documentation for more details.

FAILED METHOD: React.TinyIoC.TinyIoCContainer.ConstructType(Type requestedType, Type implementationType

I am using Visual Studio 2017 to build a MVC web application. I am using .NET Core version 1.1.

Any thoughts on why I am seeing different behaviors? Suggestions for making this work more consistently?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions