-
Notifications
You must be signed in to change notification settings - Fork 365
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
SyntaxError: '=' expected #301
Comments
@PaulRBerg do the typechain package release notes include the necessary info? @krzkaczor we should add release notes for target packages too |
Not really. It's not clear from either the following statement:
Or #293 what exactly I should do to make the upgrade to TypeChain v4. |
It's was actually a previous release: https://github.com/ethereum-ts/TypeChain/releases/tag/typechain%403.0.0 You are running an old TS version (i think before 3.7) that doesn't support type imports ( Please reopen if it still doesn't work. |
Thanks @krzkaczor! I think it'd be worth it to mention in the release notes that TypeChain v4 only works with TypeScript v4. Lots of people are still using TypeScript v3. |
@PaulRBerg which TS version did you try before? I think it only requires TS3.7. There is a peer dependency for Anyway, we'll add a peer dependency on |
Fixed in: Btw. bonus q: is it possible in semver to say that everything above 3.8 including next major is fine? |
I think that https://jubianchi.github.io/semver-check/#/constraint/^3.8.x |
|
Oh, yes. That doesn't look like it's possible: |
Just to clarify - I want to match 3.8, 3.9, 4.x even future 5.x and 21.x releases. I think it's simply not possible because this is not how semver works :/ Obviously, TS doesn't comfort to semver spec so it is what it is. |
@krzkaczor can't you just specify |
Oh, actually it seems that it works (at least according to: https://jubianchi.github.io/semver-check/#/%3E%3D3.8.0/5 ) KISS! :D |
Description
I saw the recent v4 release and I wanted to upgrade to it in my solidity-template, but there is no CHANGELOG explaining what changed since v2 or v3.
Simply installing typechain@4.0.0 and @typechain/ethers-v5@3.0.0 gets me this error:
See the full stack trace here.
How to Reproduce
yarn typechain
The text was updated successfully, but these errors were encountered: