Unexpected Tokens in React/Typescript project.

IntelliJ IDEA 2024.1.6 (Ultimate Edition)
Build #IU-241.19072.14, built on August 8, 2024
Runtime version: 17.0.11+1-b1207.30 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10.0

Can anyone identify what might be going on here? I have a relatively large React/typescript web application that is building and loading as expected. However when I go to any of the source files I'm getting this:
 

 

I've tried invalidating the cache, forcing the .idea project configuration to regenerate, making sure the version of node defined in the project/ide is the same of what is being used in the system… but still this.

Any ideas?

0
1 comment

okay… so this fixed this:

Not sure when this happened, but File Type *.tsx was assigned as a Tiled Tileset File. Removing this from Settings/Editor/File Types fixed this… apparently an old issue.

This must have been “updated” along with a recent Intellij update.

0

Please sign in to leave a comment.