question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing package installation (vue-router)

See original GitHub issue

I’m following this reference to install APM Vue Package.

When I just run npm install --save @elastic/apm-rum-vue, I can see below WARN message.

npm WARN @elastic/apm-rum-vue@0.2.0 requires a peer of vue-router@^3.0.0 but none is installed. You must install peer dependencies yourself.

And it seems the source code in the same reference is using vue-router. Should I run npm install --save vue-router@^3.0.0 before installing apm-rum-vue?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
vigneshshanmugamcommented, Jan 16, 2020

The router option in the VuePlugin is optional and only needed if you are instrumenting single page applications.

Though the warning message seems to be a unreleated and we would need to remove vue-router from peer dependencies. Thanks for reporting @insukcho

0reactions
insukchocommented, Mar 11, 2020

Sorry for late response @vigneshshanmugam

We can also improve the document by adding an example without vue-router.

Sounds great to me. Let’s do it!

Read more comments on GitHub >

github_iconTop Results From Across the Web

i cant install vue-router by npm - Stack Overflow
Solution. A quick fix is to install vue-router@3 : npm install -S vue-router@3.
Read more >
Installation - Vue Router
The official router for Vue.js.
Read more >
How to use vue-router? - CodinGame
In main.js file first, we need to import a vue-router module from a node_modules folder because we have installed all of our dependencies...
Read more >
vue-router - npm
TypeScript icon, indicating that this package has built-in type declarations ... and because we want feedback on bugs and missing features, ...
Read more >
Vue i18n: Building a multi-language app with locale switcher
For this tutorial we will be using Vue I18n, a great package from the core ... Installing Vue Router; Managing Views; Adding Routes...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found