-
Notifications
You must be signed in to change notification settings - Fork 787
2.x requires unstated dependency @types/lodash.flowright #1286
Comments
Confirm error |
It looks like the compiler didn't catch this (and many other instances like it) because the Using the - import * as compose from 'lodash.flowright';
- export { compose };
+ import flowRight from 'lodash-es/flowRight';
+ export { flowRight as compose }; If there is agreement on this approach, I don't mind working on a PR. |
Same error here. The Typescript type definition errors are kinda ruining the fun of experimenting with an apollo integration |
Just encountered this same error and used the above fix in my node_modules. Have you started a PR for this? @corydeppen |
Not yet. I wanted to see if there was agreement on the approach first, but haven't heard anything yet. |
@inakianduaga it's kinda is. Hope this will be resolved soon. For now probably best to downgrade to |
Tried the solution proposed by @corydeppen and it works. Can we go ahead and make a PR for this? |
This issue has been automatically labled because it has not had recent activity. If you have not received a response from anyone, please mention the repository maintainer (most likely @jbaxleyiii). It will be closed if no further activity occurs. Thank you for your contributions to React Apollo! |
@jbaxleyiii When you have a few minutes, please review my last comment on PR #1344 regarding increasing the bundle size. |
Any possible hotfixes? |
I'm going to make sure this gets fixed today and is released! Sorry for the delay! The post 2.0 launch has been SO busy with projects popping up everywhere! |
Actually there are still a problem with lodash-es since it required babel to run on node and this doesn't work well with next.js |
Any known workarounds while this issue gets resolved? |
@danielrasmuson You can add declare module 'lodash.flowright'; to a |
Do believe this should be re-opened since the fix has been reverted. |
Same issue, should re-open until fix it. |
Until this is fixed I did the following and it is working for me. Replace the following code
with
in |
I opened #1445 since this issue is closed and does not seem to get any attention. |
Watchers please check and discuss my comment #1478 (comment) in the PR. |
Please re-open, same issue! |
It's fixed on master, which removes it and is unreleased, therefore this issue is closed. See previous linked PR which states the migration path. |
@rosskevin can we please have a hotfix release soon? This is a pretty obvious and annoying bug. I fixed it by adding an empty declaration as @asmockler suggested above. While that get rids of the error, it's still a hack. |
@rosskevin Actually this was re-added in #1572 so we are back to square one. It's kind of annoying but the |
@rosskevin Any reason why #1572 re-added the broken re-export of compose from lodash.flowright? |
@jbaxleyiii didn't want any breaking changes in the next release. It will be removed in the next major. |
3 months down the track and it's still an issue :( |
I had to rewrite my app to something else like Flow to avoid this issue :( |
@wongmjane that sounds a little bit drastc 😅 adding a |
The fast way of resolving this is to add |
@kamenminkovcom see comment above yours |
I am new to ts, so sorry if I am asking stupid things but when I add types.d.ts file there is an error. Should I add the file path to my |
just as you would include other files: |
@kamenminkovcom I added the following file and my TypeScript compiler doesn't complain anymore. No // apollo-react-lodash-fix.d.ts
declare module 'lodash.flowright'; |
Is there an ETA for the fix... This is a bit troubling for new comers. |
Came across this issue today when using create-react-app v1.1.5.
Dependencies:
|
Problem still exist after upgrade to react-apollo v 2.2.2 Solution for me: downgrade to 2.1.11 |
Worked for me as well thanks |
it works in version 2.2.4. |
Intended outcome:
Upgrading from 1.x release to the 2.x release.
Actual outcome:
How to reproduce the issue:
Install react apollo in a typescript project and run tsc
Version
The text was updated successfully, but these errors were encountered: