npx nuxi@latest module add nuxt-monaco-editor
Don't forget to install monaco-editor by using your package manager like npm or yarn.
monaco-editor
npm
yarn
export default defineNuxtConfig({ modules: [ 'nuxt-monaco-editor' ] })
<template> <MonacoEditor lang="typescript" :style="{ width: '100%', height: '100%' }"/> </template>
On This Page