'const' can only be used in a .ts file error

'const' can only be used in a .ts file error
0.0 0

#1

I used create-react-app for my react app, which ive done many times before but right away I noticed I was getting an error whenever I used const within my files.

[ts]: ‘const’ can only be used in a .ts file

is the exact error I am getting. Anyone know how to fix this?