How can one use a function imported from another script in a vue component?
If you are developing multiple components in Vue, you might be facing the situation that you have the following folder structure: . โโโ src/ โโโ components/ โโโ utils/ โ โโโ some_cool_functions.js โโโ component_a.vue โโโ component_b.vue $ cat some_cool_functions.js export function function_b(id) { console.log("Do some stuff in function a " + id) } export function function_b(id) { console.log("Do some stuff in function b " + id) } <template> <div> .... <v-btn @click="function_a(item....