I can't seem to import a local .txt
file however I can import a local .json
file. It's weird because they're in the same directory. Does anyone know why this is happening?
This is how I import it:
import myfile from './path/filename.txt'
This is the error I get:
'filetext' is declared but its value is never read.ts(6133)Cannot find module '../assets/samples/test.txt' or its corresponding type declarations.ts(2307)