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

Vercel (Edge?) + Content Collections - Failed to execute 'encode' on 'TextEncoder' #6073

Closed
1 task
ref-thomasledoux1 opened this issue Jan 31, 2023 · 2 comments · Fixed by #6070
Closed
1 task
Assignees
Labels
pkg: astro Related to the core `astro` package (scope) pkg: vercel Related to Vercel adapter (scope)

Comments

@ref-thomasledoux1
Copy link

ref-thomasledoux1 commented Jan 31, 2023

What version of astro are you using?

2.0.4

Are you using an SSR adapter? If so, which one?

Vercel

What package manager are you using?

npm

What operating system are you using?

Mac

Describe the Bug

I have a page blog/index.astro which renders out previews for a few blog posts.
These blog posts are read by using the Content Collections features, but not sure it's related to that specifically?
Now the Edge functions is failing to render the page.
I get the following error:

TypeError: Failed to execute 'encode' on 'TextEncoder': parameter 1 is not of type 'String'.
    at (chunks/astro.dc54f0c1.mjs:45:5575)
    at (chunks/astro.dc54f0c1.mjs:90:13)

Not getting any errors while running the development server btw.

Link to Minimal Reproducible Example

https://codesandbox.io/p/github/thomasledoux1/website-thomas-astro/feature/use-prerender

Participation

  • I am willing to submit a pull request for this issue.
@AirBorne04
Copy link
Contributor

This should be fixed with PR #6070

@AirBorne04 AirBorne04 self-assigned this Feb 1, 2023
@AirBorne04 AirBorne04 added pkg: astro Related to the core `astro` package (scope) pkg: vercel Related to Vercel adapter (scope) labels Feb 1, 2023
@bholmesdev
Copy link
Contributor

Closing as duplicate of #5915. Fix coming shortly!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: astro Related to the core `astro` package (scope) pkg: vercel Related to Vercel adapter (scope)
Projects
None yet
3 participants