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
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Verify canary release
Provide environment information
Which area(s) of Next.js are affected? (leave empty if unsure)
SWC transpilation
Link to the code that reproduces this issue
https://codesandbox.io/s/awesome-dewdney-yp0x9d?file=/pages/index.tsx
To Reproduce
Create a new app via
npx create-next-app@canary
with default optionsAdd
console.log([1,2,3].at(0))
inpages/index.tsx
.npm run build && npm run start
Describe the Bug
Open http://localhost:3000 in Chrome 91, Firefox 89 or Safari 13 (any browser not supporting array.at)
An error will occurs : TypeError: "[...].at is not a function"
The code isn’t transpiled to older browsers.
Expected Behavior
Code is transpiled and works on older browsers as described in next browser support documentation.
Which browser are you using? (if relevant)
Safari 13.1
How are you deploying your application? (if relevant)
No response
The text was updated successfully, but these errors were encountered: