iamyuu / gridjs-svelte

A Svelte wrapper component for Grid.js
https://npm.im/gridjs-svelte
MIT License
56 stars 13 forks source link

SvelteWrapper plugin does not render #29

Open brunobely opened 1 year ago

brunobely commented 1 year ago

Example shows the error, in the console:

"[Grid.js] [ERROR]: Duplicate plugin ID: email"
Error: Component is not a constructor
message: "Component is not a constructor"
stack: "TypeError: Component is not a constructor…"

Is the plugin broken or maybe the example just needs to be updated?

rogiervandenberg commented 1 year ago

Having the same issue too:

"[Grid.js] [ERROR]: Duplicate plugin ID: email"

and

Error: Component is not a constructor
message: "Component is not a constructor"
stack: "TypeError: Component is not a constructor\n" +
" at SvelteWrapper.componentDidMount (eval at handle_message (about:srcdoc:14:8), <anonymous>:895:29)\n" +
" at eval (eval at handle_message (about:srcdoc:14:8), <anonymous>:471:8380)\n" +
" at Array.some (<anonymous>)\n" +
" at eval (eval at handle_message (about:srcdoc:14:8), <anonymous>:471:8361)\n" +
" at Array.some (<anonymous>)\n" +
" at O (eval at handle_message (about:srcdoc:14:8), <anonymous>:471:8321)\n" +
" at eval (eval at handle_message (about:srcdoc:14:8), <anonymous>:471:3683)\n" +
" at Array.some (<anonymous>)\n" +
" at I (eval at handle_message (about:srcdoc:14:8), <anonymous>:471:3495)"

I'm not sure why yet...

FlorianHoornaar commented 1 year ago

As a workaround I downgraded gridjs to version 5.1.0.

npm install gridjs@5.1.0

GlistenSTAR commented 7 months ago

As a workaround I downgraded gridjs to version 5.1.0.

npm install gridjs@5.1.0

Thanks, it's working