nuxt-monaco-editor

Integrate monaco-editor with Nuxt
336,283 149
Install
npm install nuxt-monaco-editor
Latest Version:1.5.0
Vue:3
License:MIT
Last Updated:Sep 14, 2026
Links: GitHub  ·  npm
Maintainer: e_chan1007

Nuxt Monaco Editor

npm version License: MIT Codacy Badge Test result

Integrate monaco-editor with Nuxt

Install

npx nuxi@latest module add nuxt-monaco-editor

Don't forget to install monaco-editor.

Version requirements

  • nuxt-monaco-editor v1.5.0 or later requires monaco-editor v0.56.0 or later.
  • If you use monaco-editor v0.55.x or earlier, use nuxt-monaco-editor v1.4.2.

Setup

  1. Add this module to the Nuxt config
export default defineNuxtConfig({
  modules: ["nuxt-monaco-editor"],
});
  1. (Optional) Configure the module
export default defineNuxtConfig({
  monacoEditor: {
    // These are default values:
    locale: "en",
    componentName: {
      codeEditor: "MonacoEditor",
      diffEditor: "MonacoDiffEditor",
    },
  },
});
  1. Use the component in your pages or components
<template>
  <MonacoEditor v-model="value" lang="typescript" />
</template>

<script lang="ts" setup>
const value = ref("");
</script>

Development

  • Run pnpm dev:prepare to generate type stubs.
  • Use pnpm dev to start playground in development mode.
  • Run pnpm exec playwright-core install --with-deps to install dependencies for testing.
  • Run pnpm test to run tests.
  • Run pnpm lint to run linting.

Related Packages

@scayle/storefront-nuxt

Nuxt integration for the SCAYLE Commerce Engine and Storefront API

152,903
nuxt-tsconfig-stub

Stub Nuxt's generated tsconfig.json at installation

70,835 24
kuranuxt

Look at the Nuxt 3 documentation to learn more.

871 0
nuxt-define

One utility function for module authors to define compiler constants for all bui...

13,412,511
dayjs-nuxt

Day.JS Module for Nuxt

1,986,864 126

Version History

Version Released License
1.5.0 MIT
1.4.2 MIT
1.4.1 MIT
1.4.0 MIT
1.3.2 MIT
Pre-releases (16)
Version Released License
1.4.1-alpha.1 MIT
1.4.1-alpha.0 MIT
1.4.0-alpha.2 MIT
1.4.0-alpha.1 MIT
1.4.0-alpha.0 MIT