Forum Discussion

hinabatooq's avatar
hinabatooq
New Contributor
2 years ago
Solved

Import unit is not working

Hi there, I have installed updated version of the Test complete. After which i tried to import another unit to my main unit script. Which started to give me an error as " TypeError: Cannot read pro...
  • rraghvani's avatar
    rraghvani
    2 years ago

    Here's an example,

    I noticed while using the Import Function, that it had created the following line,

    var Unit1 = require["Unit1"]

    which is incorrect for JavaScript. It should be using round brackets and not square brackets.