Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build TypeScript on Version 4.56.0 #315

Open
JoseRivas1998 opened this issue Aug 26, 2023 · 2 comments
Open

Unable to build TypeScript on Version 4.56.0 #315

JoseRivas1998 opened this issue Aug 26, 2023 · 2 comments

Comments

@JoseRivas1998
Copy link

I am having an issue running tsc on a project with the latest version of the Plivo SDK. This is the error message:

node_modules/plivo/dist/resources/maskingSession.d.ts:30:37 - error TS2304: Cannot find name 'PlivoResource'.

30 export class MaskingSession extends PlivoResource {
                                       ~~~~~~~~~~~~~

node_modules/plivo/dist/resources/maskingSession.d.ts:72:46 - error TS2304: Cannot find name 'PlivoResourceInterface'.

72 export class MaskingSessionInterface extends PlivoResourceInterface {
                                                ~~~~~~~~~~~~~~~~~~~~~~


Found 2 errors in the same file, starting at: node_modules/plivo/dist/resources/maskingSession.d.ts

plivo-node Version: 4.56.0
NodeJS Version: v18.13.0
TypeScript Version: 5.1.6

So far reverting to version 4.32.0 has worked.

@Astotts
Copy link

Astotts commented Aug 29, 2024

I'm having a similar issue, the typescript wont compile
(specifically \node_modules\plivo\dist\resources\tollfree_verification.d.ts)

this is because the path to the file doesn't exist and as far as I can tell the file itself doesn't exist as I've searched through my directory as best as I could and couldn't find the tollfree_verification file that is supposed to be imported in line 153

Reverting to a previous version did not fix this error for me

Update : I had to change my tsconfig to include src**/.ts then back to **/.ts no clue why but if I dont compile with both commands it'll throw an error saying it cant find a directory because of plivo. I tried manually including each file and that didn't work.

@aces-tm
Copy link

aces-tm commented Oct 8, 2024

I am having this same issue with tollfree_verification and at the moment nothing helps. I tried changing tsconfig, but no luck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants