You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use SimpleMDE in my Nuxt.js project, but I couldn't make it yet. It would be very appreciated if anyone could share some successful experiences.
Firstly, I installed SimpleMDE by npm i simplemde --save, and then created a js file named simple_mde.js under ~/plugins folder with the following content:
importVuefrom"vue";importSimpleMDEfrom"simplemde";// Vue.component("SimpleMDE", SimpleMDE); // I tried this line either.Vue.use(SimpleMDE);
And then registered this plugin in nuxt.config.js:
plugins: [{src: "~/plugins/simple_mde.js"}],
So, I thought I could use the plugin on the page, here's the code:
Hi,
I'm trying to use SimpleMDE in my Nuxt.js project, but I couldn't make it yet. It would be very appreciated if anyone could share some successful experiences.
Firstly, I installed SimpleMDE by
npm i simplemde --save
, and then created a js file namedsimple_mde.js
under~/plugins
folder with the following content:And then registered this plugin in
nuxt.config.js
:So, I thought I could use the plugin on the page, here's the code:
But I failed with the following error, no clue, and didn't find out any solution for this, could anyone help? Thanks in advance!
BTW, before I integrated SimpleMDE, there's no such error, my website runs correctly.
The text was updated successfully, but these errors were encountered: