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

Internal assertion failed #104

Closed
bob057 opened this issue Jun 25, 2021 · 4 comments
Closed

Internal assertion failed #104

bob057 opened this issue Jun 25, 2021 · 4 comments

Comments

@bob057
Copy link

bob057 commented Jun 25, 2021

Uncaught (in promise) Error: [vite-plugin-ssr@0.1.0-beta.43][Internal Failure] You stumbled upon a bug in vite-plugin-ssr's source code (an internal assertion failed). This should definitely not be happening, and you should create a new issue at https://github.com/brillout/vite-plugin-ssr/issues/new that includes this error stack (the error stack is enough to debug this). Or reach out on Discord. A fix will be written promptly.
at newError2 (newError.ts:18)
at assert (assert.ts:21)
at getPageById (getPage.client.ts:46)
at async getPage (getPage.client.ts:19)
at async hydrate (_default.page.client.js:6)

@brillout
Copy link
Member

Let me have a look

@brillout
Copy link
Member

Actually, the best would be that you update to vite-plugin-ssr@0.1.2 and let me know if the error persists.

@bob057
Copy link
Author

bob057 commented Jun 25, 2021

Thanks for the quick reply. It works now after upgrading and changing ${html.dangerouslySetHtml(appHtml)} to ${html.dangerouslySkipEscape(appHtml)}

@brillout
Copy link
Member

Yes, make sure to check the CHANGELOG.md while upgrading.

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