CSV Files
Unanswered
Little Stint posted this in #help-forum
![Avatar](https://cdn.discordapp.com/embed/avatars/3.png)
Little StintOP
Anyone know how to read a local CSV file in Next.js?
I am using Papaparser and I am trying to import/use my csv file but nothing works. I researched online and people said to edit th webpack and I tried that but getting errors:
I am using Papaparser and I am trying to import/use my csv file but nothing works. I researched online and people said to edit th webpack and I tried that but getting errors:
Cannot find module '../_dataset/test.csv' or its corresponding type declarations.
2 Replies
![Avatar](https://cdn.discordapp.com/embed/avatars/3.png)
Little StintOP
Nvm got it working! Thanks for reaching out!
![Avatar](https://cdn.discordapp.com/avatars/657067112434499595/c78dd8e985ede1ad50c31ac682dd91a1.webp?size=256)
risky
was there anything specific you did to fix as it could be nice to others that come across this in future, but eitherwise very cool 🙂