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

[500] Intl.Segmenter does not exist. Please use import a polyfill #29

Closed
tmlmt opened this issue Mar 24, 2023 · 6 comments
Closed

[500] Intl.Segmenter does not exist. Please use import a polyfill #29

tmlmt opened this issue Mar 24, 2023 · 6 comments

Comments

@tmlmt
Copy link

tmlmt commented Mar 24, 2023

Describe the bug

Visualisation of og.png leads to the referenced error.

Reproduction

https://stackblitz.com/edit/nuxt-starter-gdt6pi?file=pages/index.vue
Click on any "OG:IMAGE" link.

System / Nuxt Info

------------------------------
- Operating System: `Linux`
- Node Version:     `v16.14.2`
- Nuxt Version:     `3.3.1`
- Nitro Version:    `2.3.2`
- Package Manager:  `npm@7.17.0`
- Builder:          `vite`
- User Config:      `runtimeConfig`, `modules`
- Runtime Modules:  `nuxt-og-image@1.5.5`
- Build Modules:    `-`
------------------------------
@harlan-zw
Copy link
Collaborator

Can't seem to replicate it with the latest beta

https://stackblitz.com/edit/nuxt-starter-xccx6d?file=package.json

Could you verify?

@tmlmt
Copy link
Author

tmlmt commented Mar 25, 2023

It does not work on my end ://

image

@harlan-zw
Copy link
Collaborator

It does not work on my end ://

image

What browser are you using?

@tmlmt
Copy link
Author

tmlmt commented Mar 25, 2023

Good point !

  • Firefox 111.0.1: does not work
  • Chromium 111.0.5563.110: works !

@harlan-zw
Copy link
Collaborator

harlan-zw commented Mar 26, 2023

Looks like this can be solved with https://github.com/surferseo/intl-segmenter-polyfill

I tried testing this on Firefox outside of Stackblitz and it appears to work so I'm not sure if it makes sense to polyfill. Maybe you could also confirm you can't replicate outside of Stackblitz.

@tmlmt
Copy link
Author

tmlmt commented Mar 26, 2023

I copied the above-referenced stackblitz repro locally on my machine, and can confirm that it works fine with Firefox, so I also propose to close this one, and for future issues I'll avoid using Firefox for nuxt-og-image repros on Stackblitz.

@harlan-zw harlan-zw closed this as not planned Won't fix, can't repro, duplicate, stale Mar 27, 2023
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