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

BUG | .flat is not a function when using in a typescript project? #125

Closed
louisgv opened this issue May 28, 2020 · 3 comments
Closed

BUG | .flat is not a function when using in a typescript project? #125

louisgv opened this issue May 28, 2020 · 3 comments
Labels

Comments

@louisgv
Copy link

louisgv commented May 28, 2020

Got this weird behavior when using this library in a typescript nextjs project:

TypeError: [(res.getHeader(...) || [])].flat is not a function
    at Object.save (...\node_modules\next-iron-session\dist\index.js:82:69)
@louisgv
Copy link
Author

louisgv commented May 28, 2020

Found the issue. My nodejs version on this box was old (10.x), and flat was not a thing.

Maybe add a note in the readme that this library only work on node>12

@vvo vvo closed this as completed in 478cef5 May 28, 2020
@vvo
Copy link
Owner

vvo commented May 28, 2020

Thanks, just updated the Node.js version requirements

@vvo
Copy link
Owner

vvo commented May 28, 2020

🎉 This issue has been resolved in version 4.1.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

@vvo vvo added the released label May 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants