私はReact.net、より具体的にはSystem.Web.Optimization.React
ライブラリを使用しています。私はその上に仮想パスとプットいくつかのファイル作成React.netのバンドルと細分化ASP.net
:次に
bundles.Add(new BabelBundle(BundlesVirtualPaths.EditorV2).Include(
(...)
));
を、私は次の行使ってcshtml
内のファイルをインポートします。
@Scripts.Render(BundlesVirtualPaths.EditorV2.Libs.All)
し、エラーをOut Of Memory
投げている:
Server Error in '/' Application.
Exception of type 'System.OutOfMemoryException' was thrown.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
Source Error:
Line 13:
@Html.Raw(ItemsHelper.JSGlobalVariables.GetGlobalVariablesArrayJavascript()) Line 14: @Styles.Render(BundlesVirtualPaths.EditorV2CSS.Root) Line 15: @Scripts.Render(BundlesVirtualPaths.EditorV2) Line 16: Line 17:
@Scripts.Render(BundlesVirtualPaths.EditorV1.Shared,Source File: c:\Repository\Default\adigitalbook\html5\adigitalbook.html5.mainserver\Views\Shared\LayoutEditorV2.cshtml Line: 15
私はバベルを使用してファイルを変換して(次のように)エラーを解決せずにファイルをインポートします。
bundles.Add(new ScriptBundle(BundlesVirtualPaths.EditorV2).Include(
(...)
));