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.

Failed to compile Cannot find name 'TranslateChildFunction'

See original GitHub issue

Not sure why I got failed to compile.

I see TranslateChildFunction is inside the file but it can’t find the name.

/node_modules/react-localize-redux/lib/index.d.ts
(59,23): Cannot find name 'TranslateChildFunction'.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
ryandrewjohnsoncommented, Apr 7, 2018

Thanks a lot for your help on this one. I ended up having to make even more type fixes, so I just pulled the changes directly from your PR #64. I have published a new version v2.17.2 which I hoping fixes all the type issues, but I did have to make one change that could result in some breaks. I had to rename the translate’s function type which previously was using a type called Translate to TranslateFunction, as this was causing conflicts with the new Translate component type that also need to be named Translate.

If you could test and let me know if there are any issues that’d be greatly appreciated.

1reaction
Qolzamcommented, Apr 7, 2018

Perfect 👍 I have just tested and all working well. I greatly appreciate your fast reply and quick fix.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular and Typescript: Can't find names - Error: cannot find ...
I am using Angular (version 2) with TypeScript (version 1.6) and when I compile the code I get ...
Read more >
type script compilation error #388 - PagerDuty/pdjs - GitHub
Typescript failed to compile because of missing interfaces. Adding typescript lib (dom/webworker), ... error TS2304: Cannot find name 'Response'.
Read more >
Error TS2304 Cannot find name 'WebGLObject' - Questions
js exporter to script compilation options. I can't export the project using the play button, there's a “Build Failed” message. The errors are:...
Read more >
Cannot find name 'browser' - Typescript error - Mozilla Discourse
I'm writing an extension with typescript. When I need to reference browser I get the error Cannot find name 'browser', which is understandable, ......
Read more >
Fix the Cannot Find Name 'require' Error in TypeScript
To fix the “cannot find name 'require'” error in TypeScript, install the @types/node package into your project by running npm i -D @types/node...
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