You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So there is no way to change the target? I guest I'll have to do a polyfill in this case.
As mentioned, there are various ways (you tried quite some of them as you shown before). Eventually, we want to support a top-level target option to make it easier but so far this is not implemented.
From the docs: "The core browser set targets the 2 most recent major versions of Chrome, Firefox, and Edge on a monthly basis and Safari on a yearly basis."
Environment
Nuxt project info:
Reproduction
https://stackblitz.com/edit/github-ezocff
Describe the bug
After upgrading nuxt to 3.7.0 (in particular destr to 2.0.2) ofetch starts to fail on Safari < 15.4 with message:
TypeError: e.at is not a function. (In 'e.at(-1)', 'e.at' is undefined)
It can be reproduced on Safari < 15.4
Additional context
As I understand the reason is an updated destr dependency from 2.0.1 to 2.0.2 which introduced
at(-1)
in the codebase: unjs/destr@v2.0.1...v2.0.2#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80As a quick fix I override its version in package.json as
Trying to set something like this in my
nuxt.config.ts
doesn't help:Logs
No response
The text was updated successfully, but these errors were encountered: