vue-mermaid icon indicating copy to clipboard operation
vue-mermaid copied to clipboard

This dependency was not found

Open CodeSmolder opened this issue 3 years ago • 5 comments

Hi,

I have tried to install vue-mermaid in combination with vue.js 2.6.11.

Following the readme I have used

npm install --save vue-mermaid

and then I added the following lines to my main.js file: import VueMermaid from "vue-mermaid"; Vue.use(VueMermaid);

When I am starting vue with

npm run serve

it results in the following error message:

ERROR Failed to compile with 1 error 18:36:34

This dependency was not found:

* vue-mermaid in ./src/main.js

To install it, you can run: npm install --save vue-mermaid

Can anybody help?

CodeSmolder avatar Sep 09 '21 16:09 CodeSmolder

I've the same problem,have you resolve this?

liguitong avatar Sep 14 '21 11:09 liguitong

As a workaround I have copied the two files vue-mermaid.js and index.js to a subfolder name mermaid under src in my project.

Now it works by importing the following:

import VueMermaid from "./vue-mermaid/index.js"; Vue.use(VueMermaid);

CodeSmolder avatar Sep 14 '21 11:09 CodeSmolder

Worked for me on this way:

import VueMermaid from "vue-mermaid/src";
Vue.use(VueMermaid);

jonaswebdev avatar Jan 19 '22 04:01 jonaswebdev

@jonaswebdev Thanks, works for me.

mrzygood avatar Jul 13 '22 12:07 mrzygood

Worked for me on this way:

import VueMermaid from "vue-mermaid/src";
Vue.use(VueMermaid);

Thanks, works for me.

The-Gamer-01 avatar May 30 '23 03:05 The-Gamer-01