Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
115
rated 0 times [  122] [ 7]  / answers: 1 / hits: 5752  / 4 Years ago, tue, august 11, 2020, 12:00:00

Am getting this error in vue


vue.esm.js?efeb:628 [Vue warn]: Error in v-on handler: "TypeError: Cannot read property 'v4' 
of undefined"

found in

---> <AddTodo> at src/components/AddTodo.vue
<App> at src/App.vue
<Root>

I have already installed uuid so v4 should be working but it is not.


More From » vue.js

 Answers
29

I got same error and
I solved it.


import {v4} from 'uuid';

const uuId = v4()

[#2928] Friday, August 7, 2020, 4 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
malkajillc

Total Points: 652
Total Questions: 107
Total Answers: 98

Location: Finland
Member since Sat, Nov 6, 2021
3 Years ago
malkajillc questions
Tue, Jun 29, 21, 00:00, 3 Years ago
Fri, Aug 21, 20, 00:00, 4 Years ago
Tue, Apr 14, 20, 00:00, 4 Years ago
;