"Cannot find module './database.json'"

I just renamed my App.js to App.tsx, because I want to use TypeScript, and Snack’s saying it can’t find the database.json (that’s right next to App.tsx in the directory). I’m doing import database from './database.json';. Any idea why this might be happening?

Hey @willwhite, are you able to share a link to the Snack?


Hi @adamjnav. Yes, here it is: prompt - Snack

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.