Static GitHub Issues

[1775] How work with vue plugins like tinymce-vue-2

prev: Babel transform plugin not working within NuxtJS
next: vue-test-utils can not be used

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>