Can not render web components
Qwik Version
0.10.0
Operating System (or Browser)
MacOS Chrome
Node Version (if applicable)
No response
Which component is affected?
Qwik Rollup / Vite plugin
Expected Behaviour
Should render Webcomponents exported as ES6 modules https://sap.github.io/ui5-webcomponents/
Actual Behaviour
Throws:
[vite] Internal server error: `line` must be greater than 0 (lines start at line 1)
at originalPositionFor$1 (file:///Users/.../node_modules/vite/dist/node/chunks/dep-a713b95d.js:10041:19)
at file:///Users/.../node_modules/vite/dist/node/chunks/dep-a713b95d.js:53241:25
at String.replace (<anonymous>)
at file:///Users/.../node_modules/vite/dist/node/chunks/dep-a713b95d.js:53232:21
at Array.map (<anonymous>)
at ssrRewriteStacktrace (file:///Users/.../node_modules/vite/dist/node/chunks/dep-a713b95d.js:53231:10)
at instantiateModule
Additional Information
No response
We need a repo case, web components dont have SSR in their specification btw.
We need a repo case, web components dont have SSR in their specification btw.
Yeah I guess thats what the problem boils down to. Any way to import webcomponents on client side? I tried to await import() but that did not work.
I'm closing this as it doesn't have a repro
Please feel free to re-open once you add a link to a reproduction repository
Thanks
We need a repo case, web components dont have SSR in their specification btw.
Yeah I guess thats what the problem boils down to. Any way to import webcomponents on client side? I tried to
await import()but that did not work.
Did you get a solution?
I have googled “qwik web components” a few times now, and for the second time, I am looking at this thread.
I would love to be able to roll with Qwik City as a meta-framework but still be able to use some react or solid or vue components. Full-ish react interop would make migration of existing apps truly feasible for most projects.
Perhaps we need a fresh take on web components that support ssr, a sort of universal “RSC”. Cc @mhevery
move all qwik web components comments here https://github.com/QwikDev/qwik/issues/6451