Closed rdok closed 4 months ago
PETOSS-372
Thanks for raising an issue, a ticket has been created to track your request
hey @rdok
please use the latest version v5.0.1 we have got rid off request module altogether.
let us know.
request module has been replaced with axios. please use the latest versions.
SDK Version: 4.37.0
Describe the bug
Fails to compile in a TypeScript based project. This issue also includes a temporarily solution.
Actual error
Temporarily solution
If you are encountering issues related to the 'request' module and its types, using declare module 'request'; is a way to tell TypeScript that the module will exist at runtime, and it helps TypeScript understand that the types are available externally. This declaration is often used with third-party libraries or modules that don't have TypeScript typings included.
ignore-types.d.ts
. Put this file either in the root directory, or inside a directory you're implicitly including.To Reproduce
Code
tsconfig.json
TypeScript version:
Expected behavior
No compilation errors.