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
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-editorv1.5.0 or later requiresmonaco-editorv0.56.0 or later.- If you use
monaco-editorv0.55.x or earlier, usenuxt-monaco-editorv1.4.2.
Setup
- Add this module to the Nuxt config
export default defineNuxtConfig({
modules: ["nuxt-monaco-editor"],
});
- (Optional) Configure the module
export default defineNuxtConfig({
monacoEditor: {
// These are default values:
locale: "en",
componentName: {
codeEditor: "MonacoEditor",
diffEditor: "MonacoDiffEditor",
},
},
});
- 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:prepareto generate type stubs. - Use
pnpm devto start playground in development mode. - Run
pnpm exec playwright-core install --with-depsto install dependencies for testing. - Run
pnpm testto run tests. - Run
pnpm lintto run linting.
Related Packages
nuxt-define
One utility function for module authors to define compiler constants for all bui...
13,412,511
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 | |
| 1.3.1 | MIT | |
| 1.3.0 | MIT | |
| 1.2.9 | MIT | |
| 1.2.8 | MIT | |
| 1.2.7 | MIT | |
| 1.2.6 | MIT | |
| 1.2.5 | MIT | |
| 1.2.4 | MIT | |
| 1.2.3 | MIT | |
| 1.2.2 | MIT | |
| 1.2.0 | MIT | |
| 1.1.4 | MIT | |
| 1.1.3 | MIT | |
| 1.1.2 | MIT | |
| 1.1.1 | MIT | |
| 1.1.0 | MIT | |
| 1.0.6 | MIT | |
| 1.0.5 | MIT | |
| 1.0.4 | MIT | |
| 1.0.3 | MIT | |
| 1.0.2 | MIT | |
| 1.0.1 | MIT | |
| 1.0.0 | 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 | |
| 1.3.1-0 | MIT | |
| 1.2.3-beta.0 | MIT | |
| 1.2.1-beta.3 | MIT | |
| 1.2.1-beta.2 | MIT | |
| 1.2.1-beta.0 | MIT | |
| 1.2.0-beta.3 | MIT | |
| 1.2.0-beta.2 | MIT | |
| 1.2.0-beta.1 | MIT | |
| 1.2.0-beta.0 | MIT | |
| 1.1.3-beta.1 | MIT | |
| 1.1.3-beta.0 | MIT |