Open Harsh062 opened 10 months ago
Seeing the same issue with Node v20.10.0. Only reference to afterRequest
I can find is within the har-schema
package.
@austineady @Harsh062 I believe you're getting this error because the version of the ajv
you're using is 8
while version 6
is needed for httpsnippet
. If you do downgrade to 6
, the error should go away. Interestingly enough, ajv
is not defined as dep for httpsnippet
while it's been used. It's only defined as dependency within har-schema
, and I' guessing ajv v8
has some breaking changes.
@Harsh062 @austineady you shouldn't face this error anymore from v3.0.7 onwards. Fixed as part of #371.
I am getting the below error when executing the basic example provided in the docs in my NodeJs project:
Example Code:
httpsnippet version in package.json file: ^3.0.1 NodeJs version: 18.17
I am getting the same error via CLI as well when executing the below command:
httpsnippet example.json --target shell --client curl --output ./examples