I create web part with share point framework "no JavaScript framework" my code with TypeScript I have problem, I will get, or reading data taxonomy term store share point.
Question: how to declare variable "SP" in my code? Because my code error asking variable "SP" to declare first
SP is part of sp.js,but as you are working with SPFX WebPart, you should use TypeScript instead, please check the demo to read Taxonomy in SPFX webpart:
And this file shows get Term from Term Store using TypeScript: