qwik icon indicating copy to clipboard operation
qwik copied to clipboard

Can not render web components

Open maxcodefaster opened this issue 3 years ago • 2 comments

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

maxcodefaster avatar Oct 13 '22 12:10 maxcodefaster

We need a repo case, web components dont have SSR in their specification btw.

manucorporat avatar Oct 16 '22 08:10 manucorporat

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.

maxcodefaster avatar Oct 16 '22 20:10 maxcodefaster

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

shairez avatar Aug 13 '23 09:08 shairez

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?

njoguamos avatar Aug 21 '23 17:08 njoguamos

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

devinrhode2 avatar Jun 03 '24 14:06 devinrhode2

move all qwik web components comments here https://github.com/QwikDev/qwik/issues/6451

PatrickJS avatar Jun 03 '24 14:06 PatrickJS