From e60f96e463921f48b2adecc984a55531e3236310 Mon Sep 17 00:00:00 2001 From: Alex Mickelson Date: Fri, 13 Sep 2024 21:55:02 -0600 Subject: [PATCH] load monaco locally --- nextjs/src/components/editor/InnerMonacoEditor.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nextjs/src/components/editor/InnerMonacoEditor.tsx b/nextjs/src/components/editor/InnerMonacoEditor.tsx index c926140..70b4ff8 100644 --- a/nextjs/src/components/editor/InnerMonacoEditor.tsx +++ b/nextjs/src/components/editor/InnerMonacoEditor.tsx @@ -2,6 +2,9 @@ import React, { useRef, useEffect } from "react"; import loader from "@monaco-editor/loader"; import { editor } from "monaco-editor/esm/vs/editor/editor.api"; +import * as monaco from 'monaco-editor'; +loader.config({ monaco }); + export default function InnerMonacoEditor({ value,