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

This member cannot have an 'override' modifier because it is not declared in the base class 'BaseError'. #186

Open
denys5dev opened this issue Apr 30, 2024 · 2 comments

Comments

@denys5dev
Copy link

I catch an error during compilation. Do you have any idea what can be a reason and how to fix it ? Thank you.

Error: node_modules/permissionless/errors/estimateUserOperationGas.ts:13:14 - error TS4113: This member cannot have an 'override' modifier because it is not declared in the base class 'BaseError'.

13     override cause: BaseError
                ~~~~~


Error: node_modules/permissionless/errors/sendUserOperation.ts:13:14 - error TS4113: This member cannot have an 'override' modifier because it is not declared in the base class 'BaseError'.

13     override cause: BaseError
                ~~~~~

Deps

"permissionless": "^0.1.22",
"typescript": "5.3.3"
@plusminushalf
Copy link
Contributor

What is your target in tsconfig?

@denys5dev
Copy link
Author

Initially "target": "es2022"

but looks like to fix it also need to add lib prop with


"lib": [
      "ES2022",
      "dom"
    ]

then it works fine

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

2 participants