ek0519 / nova-quilljs

A Laravel Nova implementation of the Quill editor for Vue.js
26 stars 21 forks source link

TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator)) #2

Closed rezawikan closed 4 years ago

rezawikan commented 4 years ago

Hi, I got an error message when using this package. I don't know whether it affects the function or not. I'm using the last version of laravel nova.

vendor.js?id=0846a9071dc76942659b:1 TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))
    at p.mounted (quilljs:1)
    at Pt (vendor.js?id=0846a9071dc76942659b:1)
    at en (vendor.js?id=0846a9071dc76942659b:1)
    at Object.insert (vendor.js?id=0846a9071dc76942659b:1)
    at y (vendor.js?id=0846a9071dc76942659b:1)
    at p.__patch__ (vendor.js?id=0846a9071dc76942659b:1)
    at p.t._update (vendor.js?id=0846a9071dc76942659b:1)
    at p.ln.before (vendor.js?id=0846a9071dc76942659b:1)
    at ln.get (vendor.js?id=0846a9071dc76942659b:1)
    at ln.run (vendor.js?id=0846a9071dc76942659b:1)
It @ vendor.js?id=0846a9071dc76942659b:1
jt @ vendor.js?id=0846a9071dc76942659b:1
Yt @ vendor.js?id=0846a9071dc76942659b:1
Pt @ vendor.js?id=0846a9071dc76942659b:1
en @ vendor.js?id=0846a9071dc76942659b:1
insert @ vendor.js?id=0846a9071dc76942659b:1
y @ vendor.js?id=0846a9071dc76942659b:1
(anonymous) @ vendor.js?id=0846a9071dc76942659b:1
t._update @ vendor.js?id=0846a9071dc76942659b:1
ln.before @ vendor.js?id=0846a9071dc76942659b:1
ln.get @ vendor.js?id=0846a9071dc76942659b:1
ln.run @ vendor.js?id=0846a9071dc76942659b:1
un @ vendor.js?id=0846a9071dc76942659b:1
(anonymous) @ vendor.js?id=0846a9071dc76942659b:1
Gt @ vendor.js?id=0846a9071dc76942659b:1
Promise.then (async)
Vt @ vendor.js?id=0846a9071dc76942659b:1
ee @ vendor.js?id=0846a9071dc76942659b:1
(anonymous) @ vendor.js?id=0846a9071dc76942659b:1
ln.update @ vendor.js?id=0846a9071dc76942659b:1
Mt.notify @ vendor.js?id=0846a9071dc76942659b:1
set @ vendor.js?id=0846a9071dc76942659b:1
On.dn.set @ vendor.js?id=0846a9071dc76942659b:1
(anonymous) @ app.js?id=866a14858a4d8d105161:1
k @ app.js?id=866a14858a4d8d105161:1
(anonymous) @ app.js?id=866a14858a4d8d105161:1
e.<computed> @ app.js?id=866a14858a4d8d105161:1
o @ app.js?id=866a14858a4d8d105161:1
(anonymous) @ app.js?id=866a14858a4d8d105161:1
Promise.then (async)
o @ app.js?id=866a14858a4d8d105161:1
(anonymous) @ app.js?id=866a14858a4d8d105161:1
t @ app.js?id=866a14858a4d8d105161:1
(anonymous) @ app.js?id=866a14858a4d8d105161:1
(anonymous) @ app.js?id=866a14858a4d8d105161:1
(anonymous) @ app.js?id=866a14858a4d8d105161:1
k @ app.js?id=866a14858a4d8d105161:1
(anonymous) @ app.js?id=866a14858a4d8d105161:1
e.<computed> @ app.js?id=866a14858a4d8d105161:1
o @ app.js?id=866a14858a4d8d105161:1
(anonymous) @ app.js?id=866a14858a4d8d105161:1
t @ app.js?id=866a14858a4d8d105161:1
(anonymous) @ app.js?id=866a14858a4d8d105161:1
(anonymous) @ app.js?id=866a14858a4d8d105161:1
Pt @ vendor.js?id=0846a9071dc76942659b:1
en @ vendor.js?id=0846a9071dc76942659b:1
vn._init @ vendor.js?id=0846a9071dc76942659b:1
p @ vendor.js?id=0846a9071dc76942659b:1
(anonymous) @ vendor.js?id=0846a9071dc76942659b:1
init @ vendor.js?id=0846a9071dc76942659b:1
n @ vendor.js?id=0846a9071dc76942659b:1
(anonymous) @ vendor.js?id=0846a9071dc76942659b:1
M @ vendor.js?id=0846a9071dc76942659b:1
(anonymous) @ vendor.js?id=0846a9071dc76942659b:1
t._update @ vendor.js?id=0846a9071dc76942659b:1
ln.before @ vendor.js?id=0846a9071dc76942659b:1
ln.get @ vendor.js?id=0846a9071dc76942659b:1
ln.run @ vendor.js?id=0846a9071dc76942659b:1
un @ vendor.js?id=0846a9071dc76942659b:1
(anonymous) @ vendor.js?id=0846a9071dc76942659b:1
Gt @ vendor.js?id=0846a9071dc76942659b:1
Promise.then (async)
Vt @ vendor.js?id=0846a9071dc76942659b:1
ee @ vendor.js?id=0846a9071dc76942659b:1
t.$nextTick @ vendor.js?id=0846a9071dc76942659b:1
(anonymous) @ app.js?id=866a14858a4d8d105161:1
k @ app.js?id=866a14858a4d8d105161:1
(anonymous) @ app.js?id=866a14858a4d8d105161:1
e.<computed> @ app.js?id=866a14858a4d8d105161:1
o @ app.js?id=866a14858a4d8d105161:1
(anonymous) @ app.js?id=866a14858a4d8d105161:1
Promise.then (async)
o @ app.js?id=866a14858a4d8d105161:1
(anonymous) @ app.js?id=866a14858a4d8d105161:1
t @ app.js?id=866a14858a4d8d105161:1
(anonymous) @ app.js?id=866a14858a4d8d105161:1
l @ app.js?id=866a14858a4d8d105161:1
z @ vendor.js?id=0846a9071dc76942659b:1
o @ vendor.js?id=0846a9071dc76942659b:1
lt @ vendor.js?id=0846a9071dc76942659b:1
qt.confirmTransition @ vendor.js?id=0846a9071dc76942659b:1
qt.transitionTo @ vendor.js?id=0846a9071dc76942659b:1
xt.init @ vendor.js?id=0846a9071dc76942659b:1
beforeCreate @ vendor.js?id=0846a9071dc76942659b:1
Pt @ vendor.js?id=0846a9071dc76942659b:1
en @ vendor.js?id=0846a9071dc76942659b:1
vn._init @ vendor.js?id=0846a9071dc76942659b:1
vn @ vendor.js?id=0846a9071dc76942659b:1
value @ app.js?id=866a14858a4d8d105161:1
(anonymous) @ edit?viaResource=&viaResourceId=&viaRelationship=:232
ek0519 commented 4 years ago

I guess you didn't execute php artisan vendor:publish --provider="Ek0519\Quilljs\FieldServiceProvider" quilljs need load config file, in order to set toolbar. This command will copy config files to Laravel config folder.

May be you can try remove it , and reinstall

p.s I use nova 2.9.3 and Laravel 6.10 to test.

ek0519 commented 4 years ago

@rezawikan Hi I updated new version, I set default config, avoid user not execute vender:publish