Failed to compile Cannot find name 'TranslateChildFunction'
See original GitHub issueNot 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:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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 calledTranslate
toTranslateFunction
, as this was causing conflicts with the new Translate component type that also need to be namedTranslate
.If you could test and let me know if there are any issues that’d be greatly appreciated.
Perfect 👍 I have just tested and all working well. I greatly appreciate your fast reply and quick fix.