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.

Should `vue` be a `devDependencies` instead of a `dependency` ?

See original GitHub issue

When I install VFG for my project, I realized that a different version of vue was installed. I guess npm does that because it it listed under dependencies in package.json. But this is useless, no ? If I want to clone the project to work on it, I will install dependency and devDependencies. However, if I want to use VFG as a plugin/component, I don’t need to install this specific version of vue. I can do:

import {component} from 'vue-form-generator';

export default {
    components: {
        'vue-form-generator': component
    }
}

As long as I use vue 2 it should work

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
lionel-bijaouicommented, Mar 10, 2017

Sorry, I forgot to do the PR, but here it is.

0reactions
lionel-bijaouicommented, Mar 1, 2017

So far i’m hitting a brickwall. So I had to change the config and change ‘sass’ to ‘scss’, and some other tweak.

The bundling work without error, but the navigator fail. Webpack don’t seem to transpile with babel (I tried to include the path to the loader config). so every 'import something from ‘./here’ is keep as is and it cause problems. Webpack 2 seem to be able to fix that but my project is made with webpack 1 so I’m not going to change everything.

@cristijora I encourage you to take a look at my branch, I hope you can succeed: https://github.com/lionel-bijaoui/vue-form-generator/tree/lb_alternative_plugin_behavior

Read more comments on GitHub >

github_iconTop Results From Across the Web

Vuejs & npm - Should all dependencies be devDependencies?
Yes those are very clearly devDeps but even Vue itself is getting bundled with WebPack at the end. So pretty much any dependency...
Read more >
Is this a dependency or devDependency? - With Blue Ink
Strictly following the official documentation, because these packages are used only at build-time, they should be considered devDependencies.
Read more >
dependencies vs devDependencies - Medium
Dependencies should contain libs and framewors your app is built on, such as Vue, React, Angular, Express, JQuery and etc.
Read more >
Why is Axios, Vue, etc. listed in package.json under ...
They are required as a dev dependency because when you run npm run watch / prod / whatever, it compiles from node_modules to...
Read more >
Difference between dependencies ... - GeeksforGeeks
DevDependencies are the packages a developer needs during development. A peer dependency specifies that our package is compatible with a ...
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