npx nuxi@latest module add nuxt-monaco-editor
monaco-editor のインストールを忘れないよう注意してください。
monaco-editor
export default defineNuxtConfig({ modules: [ 'nuxt-monaco-editor' ] })
<template> <MonacoEditor lang="typescript" :style="{ width: '100%', height: '100%' }"/> </template>
このページの目次