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

Cannot find namespaces for events when alwaysGenerateOverloads is turned on #849

Open
ItsNickBarry opened this issue Jun 21, 2023 · 3 comments

Comments

@ItsNickBarry
Copy link
Contributor

I am attempting to upgrade my repository to use ethers V6 and the corresponding typechain packages. When building the project with tsc, multiple errors of the following format are thrown:

../typechain-types/access/access_control/AccessControl.ts(425,5): error TS2503: Cannot find namespace 'RoleAdminChanged_bytes32_bytes32_bytes32_Event'.

See the ethers-v6 branch of this repository: https://github.com/solidstate-network/solidstate-solidity/tree/ethers-v6. To reproduce, compile the contracts and run yarn build.

@emsmirnov
Copy link

I am attempting to upgrade my repository to use ethers V6 and the corresponding typechain packages. When building the project with tsc, multiple errors of the following format are thrown:

../typechain-types/access/access_control/AccessControl.ts(425,5): error TS2503: Cannot find namespace 'RoleAdminChanged_bytes32_bytes32_bytes32_Event'.

See the ethers-v6 branch of this repository: https://github.com/solidstate-network/solidstate-solidity/tree/ethers-v6. To reproduce, compile the contracts and run yarn build.

did you solve this problem?

@ItsNickBarry
Copy link
Contributor Author

No, not yet.

@ItsNickBarry
Copy link
Contributor Author

This seems to be fixed by turning off the alwaysGenerateOverloads option.

@ItsNickBarry ItsNickBarry changed the title Cannot find namespaces for events Cannot find namespaces for events when alwaysGenerateOverloads is turned on Jul 7, 2023
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