2017-05-25 65 views
1

我在asp.net核心上制作了一个React应用程序。我使用ReactJS.NET库和webpack作为jsx组件的打包程序和转发程序。未找到React组件

我有它在本地工作,但是当我deplloy天青,我得到这个日志:

An unhandled exception occurred while processing the request. 

ReactEngineNotFoundException: No 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. 
React.AspNet.HtmlHelperExtensions.get_Environment() 

TinyIoCResolutionException: Unable to resolve type: 
React.JavaScriptEngineFactory 
React.AspNet.HtmlHelperExtensions.get_Environment() 

TinyIoCResolutionException: Unable to resolve type: React.ReactEnvironment 
React.AspNet.HtmlHelperExtensions.get_Environment() 

ReactNotInitialisedException: ReactJS.NET has not been initialised correctly. 
Please ensure you have called app.AddReact() and app.UseReact() in your 
Startup.cs file. 
React.AspNet.HtmlHelperExtensions.get_Environment() 

从ReactJS.NET文档,“从2.2版本开始ReactJS.NET开箱的天青使用V8 JavaScript引擎“。和它说:“.SetAllowMsieEngine(false);在app.UseReact()”,但这是现在已经过时......

不知道该怎么做:/ 在此先感谢

回答