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
Building Error #4581
Comments
Are you using the correct TypeScript version (using npm install to install the locked version) and with the correct TypeScript settings? That part of the code hasn’t changed and at the time of each release the build worked, since the corresponding dist files were all created from the source. No published versions ever had build errors (as no emit is enabled). |
This looks like you are trying to use an incompatible TS version, ignoring the Ethers tsconfig. I recommend specifying skipLibCheck, since packages in node_modules can’t be expected to adhere to the tsconfig in the dependant package. Does that make sense? |
@ricmoo "typescript": "^5.3.3" |
The other opened issue is referencing v5 code. Not v6. You mean need to blow away your node_modules and package-lock, because there are definitely unrelated packages being pulled in. If in doubt, when looking in the node_modules, check the package.json within that folder. :) |
@ricmoo what is the typescript version recommended to version 5.7.2? |
According to the package.json version 5.0.4. Also note that TypeScript does not follow semver so the following fact same version must be used. This is also why skipLibCheck is highly recommended in general. |
Hi @ricmoo se used tyepscript 5.04 and skipLibCheck is true. It is the compilation error:
tsconfig
package.json dependencies
|
You will need the |
Hi @ricmoo thanks! But it did not work. I used node libs and the @types/node but no success result found. Do you see any mistake in the tsconfig? "@types/node": "^20.11.16",
Current tsconfig
|
Ethers Version
5.7.2
Search Terms
fallback provider
Describe the Problem
We found a building error when using FallBackProvider. We can not build our project with different versions of ethers.js: 5.7.2, 5.7.1, 5.7.0 and 5.4.0
When running npm run build, it throws the following error:
Code Snippet
Contract ABI
No response
Errors
Environment
node.js (v12 or newer)
Environment (Other)
No response
The text was updated successfully, but these errors were encountered: