CSV Load issues
Hello! For my Nuxt Content project, I am having trouble loading a csv file and parse each line in my collection.
I am using the code according to the documentation, with a delimiter of ";", but somehow, nothing is being loaded in correctly. I have one file, and thus have one item in the array that I fetch with "queryCollection()" and ".all()". This should not be the case. I see all the lines in the "meta.body" tag, just as described in this PR, but they are not parsed correctly.
https://github.com/nuxt/content/pull/3513
They say it's fixed, but I tried with one of the installations as they suggested, but it didn't work
GitHub
fix: fix csv file collections by Jasonzyt Β· Pull Request #3513 Β· ...
π Linked issue
Close #3511
β Type of change
π Documentation (updates to the documentation or readme)
π Bug fix (a non-breaking change that fixes an issue)
π Enhancement (improving an existing ...
3 Replies
Hi @NathanSegers. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
I'm sorry, but the knowledge sources provided do not contain enough information to answer your specific question about CSV loading and parsing issues with Nuxt Content, nor do they reference the PR you mentioned (nuxt/content#3513). There is no detailed documentation or troubleshooting guidance about CSV parsing, delimiters, or related fixes in the sources above.
If you are following the official documentation and still experiencing issues, it may be helpful to double-check that you are using the latest version of Nuxt Content and that your CSV file is formatted as expected. For more targeted help, you might consider opening an issue on the Nuxt Content GitHub repository or providing a minimal reproduction of your problem.
If you have more specific code or error messages, please share them, and I can check if any of the knowledge sources address those details.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
<@265156169742549004> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
Apparently, it is fixed when putting the items.csv in a subfolder, and then it's fixed, with the new PR code I used