I try to add tinymce to Nuxt
nuxt.config.js
plugins: [{src: '~/plugins/vue2-tiny', ssr: false}],
build: {
vendor: ['tinymce','tinymce-vue-2'],
vue2-tiny.js
import Vue from 'vue'
import TinyMCE from 'tinymce-vue-2'
Vue.component('tiny-mce', TinyMCE)
edit.vue in my view i add
<tiny-mce id="description" v-model="h"></tiny-mce>
But get an error
GET http://localhost:3000/_nuxt/themes/modern/theme.js net::ERR_ABORTED
Uncaught TypeError: Theme is not a constructor
How i can add themes/modern/theme.js to my nuxt project?
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1595">#c1595</a>)</em></sub></div>