gridjs-svelte
gridjs-svelte copied to clipboard
SvelteWrapper plugin does not render
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?
Having the same issue too:
- Running locally gives the error
Component is not a constructor at SvelteWrapper.componentDidMount (plugins.js:13:25)
- Running the official example to run a Svelte component in cell (at REPL), gives 2 errors:
"[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...
As a workaround I downgraded gridjs to version 5.1.0.
npm install [email protected]
Thanks, it's working