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.

Declaration or statement expected in 0.4.0-alpha.1 ver.

See original GitHub issue

Hello! Thank you for a perfect lib. I saw that AsyncPaginatesupportsmenuIsOpen` in 0.4.0-alpha.1 version.

I am trying to use alpha version, but it is fail to compile. image

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:5
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
cadbox1commented, Jul 8, 2020

I was running into this issue after setting up yarn workspaces.

my packages use typescript 3.83 but a dependency was using typescript 3.53 (same as yours funnily enough, are you using docz as well? 😉 )

For some reason this only caused issues on our CI bitbucket pipeline not locally.

I’ve solved it with yarn resolutions in the workspace root package.json. It has no effect when added to the package.json in a package in a workspace.

"resolutions": {
    "**/typescript": "3.8.3"
}

also had to clear my bitbucket pipeline cache.

hope that helps someone else 🙂

1reaction
vtaitscommented, Jun 24, 2020

import type/export type is feature of typescript 3.8.

https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-8.html#type-only-imports-and-exports

Can you upgrade?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Developers - Declaration or statement expected in 0.4.0-alpha.1 ver. -
Hello! Thank you for a perfect lib. I saw that AsyncPaginate supports menuIsOpen` in 0.4.0-alpha.1 version. I am trying to use alpha version,...
Read more >
declaration or statement expected javascript/typescript
I am using Typescript 1.7 and React 0.14 with the new ES6 systax and I'm having the following destructuring assignment, as explained here...
Read more >
declaration or statement expected react - You.com - You.com
Hello! Thank you for a perfect lib. I saw that AsyncPaginate supports menuIsOpen` in 0.4.0-alpha.1 version. I am trying to use alpha version,...
Read more >
Issues · vtaits/react-select-async-paginate - GitHub
Declaration or statement expected in 0.4.0-alpha.1 ver. legacy. #62 opened on Jun 23, 2020 by essedger · 11. Customised MenuList continuously loads.
Read more >
Open Source Used In Assist 3.1 - Cisco
1.20 source-map-url 0.4.1 ... 1.393 @pm2/pm2-version-check 1.0.4. 1.393.1 Available under ... 1.751 @babel/helper-split-export-declaration 7.16.0. 1.751.1 ...
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