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.

vue add [plugin name] doesnt work

See original GitHub issue

Hi, I had started using Vue/Cli v3.0 it looks awesome except it doesn’t work for 3rd party plugins e.g when I try to install webpack-obfuscator with $ vue add webpack-obfuscator

I get following error.

Installing vue-cli-plugin-webpack-obfuscator...

npm ERR! code E404
npm ERR! 404 Not Found: vue-cli-plugin-webpack-obfuscator@latest

I thought it might be this package doesn’t exist in NPM but when I install with NPM install webpack-obfuscator it does install the plugin to node_modules.

Even though I installed it with NPM I am not able to invoke the plugin using vue.config.js. my config looks like


module.exports = {
  configureWebpack: {
    plugins: [
      new JavaScriptObfuscator(
        {
          rotateUnicodeArray: true,
          renameGlobals: true,
          stringArray: true,
          stringArrayEncoding: true,
          stringArrayThreshold: 0.5,
          target: "browser"
        },
        ["static/js/vendor**", "static/js/manifest**"]
      )
    ]
  }
};

I am struggling to install 3rd party plugins in VUE project. Please suggest how can I use 3rd party plugins. I had read documentation carefully but the provided guide lines doesn’t work for me. I tried

vue add vue-container
vue add vue-i18n

with few others but none of them seems to work.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
yyx990803commented, Apr 4, 2018

vue add is only for vue-cli plugins. For webpack plugins you still install them with npm or yarn…

0reactions
riyasatcommented, Apr 5, 2018

@erwin16 You have to add var JavaScriptObfuscator = require('webpack-obfuscator'); before you use

module.exports = {
configureWebpack: {
plugins: [
new JavaScriptObfuscator(

all plugins you installed with npm/yarn should work as expected.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Plugins and Presets - Vue CLI
vue add is specifically designed for installing and invoking Vue CLI plugins. It is not meant as a replacement for normal npm packages....
Read more >
Vue.use(plugin) not invoking the `install` function
I am working on exporting my custom vue component as NPM module. I have followed steps mentioned in the official doc Packaging Vue...
Read more >
Get started with Vuetify
This will start the Vue User Interface and open a new window in your browser. On the left side of your screen, click...
Read more >
Plugins directory - Nuxt
The plugins directory contains your Javascript plugins that you want to run before instantiating the root Vue.js Application. This is the place to...
Read more >
Getting Started - BootstrapVue
With npm npm install vue bootstrap bootstrap-vue # With yarn yarn add vue ... of each of the component and directive docs for...
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