mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-17 23:12:23 +00:00
fix(editor): resolve production error "Missing service editorService" by importing vscode
This commit is contained in:
parent
3bee7d2ee0
commit
d10b059dd1
@ -12,6 +12,8 @@ import { Skeleton } from "@/components/ui/skeleton";
|
||||
|
||||
const DynamicEditor = dynamic(
|
||||
async () => {
|
||||
await import("vscode")
|
||||
|
||||
const monaco = await import("monaco-editor");
|
||||
const { loader, Editor } = await import("@monaco-editor/react");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user