Assets/ExportHandler.js(11,24): BCE0018: The name 'List' does not denote a valid type

Assets/ExportHandler.js(11,24): BCE0018: The name ‘List’ does not denote a valid type (‘not found’).

error is coming on this line -

var selectionStrings : List.<String> = new List.<String>();

what is this, why is it coming ???
It was working fine and suddenly, the error starts coming, i did not even do any change to my code

Hello, that’s a stupid question but: Have you added the following line; import System.Collections.Generic; at script starting?

hiiii,

error gone :wink:

Ok, what was the problem? Maybe could help someone with the same problem…

Obviously the import line, as you correctly identified (the error message is the hint, the only other one could be a typo, but List is typed right)