Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTMLElement is not defined,不支持SSR #89

Open
yoyo837 opened this issue Jun 8, 2024 · 3 comments
Open

HTMLElement is not defined,不支持SSR #89

yoyo837 opened this issue Jun 8, 2024 · 3 comments

Comments

@yoyo837
Copy link
Contributor

yoyo837 commented Jun 8, 2024

编译结果中有extends HTMLElement 的语句,导致在 SSR 中无法使用。

class QuarkElement extends HTMLElement implements ReactiveControllerHost.

@yoyo837
Copy link
Contributor Author

yoyo837 commented Jun 8, 2024

能接受无法在服务端正常渲染,到客户端再渲染。希望不报错。

@dyf19118
Copy link
Contributor

有试过在服务端引入@lit-labs/ssr-dom-shim这个包么

@yoyo837
Copy link
Contributor Author

yoyo837 commented Jun 12, 2024

有试过在服务端引入@lit-labs/ssr-dom-shim这个包么

这倒没有,我试一下。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants