question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support web3@^1.0.0-beta.38

See original GitHub issue

As of 1.0.0-beta.38, web3 ships directly with typescript typings (they seem to no longer be published through @types/web3 as of now). Ideally these typings would be used.

After this version of web3, typechain now throws a bunch of errors with the web3-1.0 target:

build/wrappers/A.d.ts:4:58 - error TS2307: Cannot find module 'web3/eth/contract'.

4 import Contract, { CustomOptions, contractOptions } from "web3/eth/contract";
                                                           ~~~~~~~~~~~~~~~~~~~

build/wrappers/A.d.ts:5:46 - error TS2307: Cannot find module 'web3/eth/types'.

5 import { TransactionObject, BlockType } from "web3/eth/types";
                                               ~~~~~~~~~~~~~~~~

build/wrappers/A.d.ts:6:10 - error TS2305: Module '"web3/types"' has no exported member 'Callback'.

6 import { Callback, EventLog } from "web3/types";
           ~~~~~~~~

build/wrappers/A.d.ts:6:20 - error TS2305: Module '"/web3/types"' has no exported member 'EventLog'.

6 import { Callback, EventLog } from "web3/types";
                     ~~~~~~~~

build/wrappers/A.d.ts:8:26 - error TS2307: Cannot find module 'web3/providers'.

8 import { Provider } from "web3/providers";

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:12
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
gitcoinbotcommented, Mar 13, 2019

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Work has been started.

These users each claimed they can complete the work by 12 months from now. Please review their action plans below:

1) cryptokat has started work.

https://github.com/ethereum-ts/TypeChain/pull/141

Learn more on the Gitcoin Issue Details page.

1reaction
eswarasaicommented, Feb 12, 2019

@krzkaczor – I’d like to know your thoughts on moving towards types that are being maintained by web3 internally within their package.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Web3.js v1.0.0-beta.38 - Medium
This will help us to keep the code style quality of the library as high as possible. New option properties for Web3 modules:...
Read more >
npm install fail on nodejs Docker build · Issue #1416 - GitHub
I tried the following versions: web31.0.0-beta.34 web31.0.0-beta.36 web31.0.0-beta.38 web31.0.0-beta.41. Docker File:.
Read more >
Moralis JS-SDK v1.0.0 [beta] (Ethers.js support)
JS-SDK v1 Beta (Ethers.js support) The JS-SDK is switching to using ethers.js instead of web3.js. This is a change that will affect current ......
Read more >
Ethereum JavaScript API — web3.js 1.0.0 documentation
web3.js is a collection of libraries that allow you to interact with a local or remote ethereum node using HTTP, IPC or WebSocket....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found