Question: This only allows to get image but i want users to be able to pick documents too.

```
Intent intent = new Intent();
intent.setType("image/*");
intent.setAction(Intent.ACTION_GET_CONTENT);
startActivityForResult(Intent.createChooser(intent, "Select Picture"),PICK_IMAGE); 

```

Answer: 
In my case, I was migrating from a project that didn't use VueCLI. In that project, I imported vue from a CDN `<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>`. In my Vue CLI project, I had copied and pasted my whole index.html file to the `Public` folder. Vue CLI has it's own way of importing vue so they were clashing. I simply removed the script and the problem was solved.
Looks like as if there are many possible answers.

I added a npm package manually to the node folder and the problem was the missing `npm i` command. After using the install command, everything worked fine.