Open avostretsov opened 3 weeks ago
I met the same issue when I running postman with Newman command
Hi @avostretsov @sini4242, thanks for the report!
This will be fixed with the next release of Newman. Until then, as a workaround, either change your variable name to something else or declare it using the var
keyword.
Is there an existing issue for this?
Describe the Issue
Post V11 release I started seeing various warnings in the Postman app console. This is the last one I am having trouble resolving:
Using "CryptoJS" is deprecated. Use "require('crypto-js')" instead.
Steps To Reproduce
Using "CryptoJS" is deprecated. Use "require('crypto-js')" instead.
const CryptoJS = require('crypto-js')
Expected Outcome: newman test rune completes without errors
Actual Outcome: newman test run results in the following error:
Identifier 'CryptoJS' has already been declared at test-script inside [Call Name]
Screenshots or Videos
No response
Operating System
macOS
Postman Version
11.8.1
Postman Platform
Postman App
User Account Type
Signed In User
Additional Context?
Newman version 6.2.1