Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This dependency was not found #29

Open
CodeSmolder opened this issue Sep 9, 2021 · 5 comments
Open

This dependency was not found #29

CodeSmolder opened this issue Sep 9, 2021 · 5 comments

Comments

@CodeSmolder
Copy link

CodeSmolder commented Sep 9, 2021

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?

@liguitong
Copy link

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

@CodeSmolder
Copy link
Author

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);

@jonaswebdev
Copy link

jonaswebdev commented Jan 19, 2022

Worked for me on this way:

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

@mrzygood
Copy link

@jonaswebdev Thanks, works for me.

@The-Gamer-01
Copy link

Worked for me on this way:

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

Thanks, works for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants