gridjs-svelte icon indicating copy to clipboard operation
gridjs-svelte copied to clipboard

SvelteWrapper plugin does not render

Open brunobely opened this issue 2 years ago • 3 comments

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?

brunobely avatar Jan 31 '23 20:01 brunobely

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...

rogiervandenberg avatar Mar 10 '23 10:03 rogiervandenberg

As a workaround I downgraded gridjs to version 5.1.0.

npm install [email protected]

FlorianHoornaar avatar Apr 25 '23 07:04 FlorianHoornaar

As a workaround I downgraded gridjs to version 5.1.0.

npm install [email protected]

Thanks, it's working

GlistenSTAR avatar Feb 29 '24 13:02 GlistenSTAR