Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
WARN Cannot stringify a function #4424
Steps to reproduce
Refresh a page.
What is expected ?
What is actually happening?
A warn in the console: Cannot stringify a function
I used the latest version of Nuxt with some modules (i18n, style resources, analytics). I have got the issue since version 2. How to better debug this kind of warning to detect which part of Nuxt is causing it?
It should output function name
Thank you for leading me to the right direction!
I tested few things and realized the problem was linked to the nuxt-i18n module. The documentation suggests to return an object or a function and in my case, returning a function outputs this warning. I changed all my locale files and now export objects.