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.

React.Node problem

See original GitHub issue

React.Node (https://flow.org/en/docs/react/types/#toc-react-node) was introduced in flow 53 as universal type for react render return type. Using this type follows to such warning:

    WARNING in ./some-file.js
    60:48-58 "export 'Node' (imported as 'React') was not found in 'react'

Which is true, because this type provided only by flow.

I guess React.Node should be replaced by plugin to something like PropTypes.element?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
brigandcommented, Oct 6, 2017

Thanks for the report! Published as 6.0.0. Let me know if it works for you.

0reactions
SpainTraincommented, Jan 24, 2018

Makes sense. That is great, thanks!

Were the Element and ChildrenArray types (https://flow.org/en/docs/react/types/) previously supported? Once I see how Node is done, I would happily open a PR to add those as well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

react-scripts fails to build project with Node 17 #11562 - GitHub
Describe the bug we have a CRA app, it used to build with Node 14.x very fine, today I upgrade nodejs to 17.0.0...
Read more >
Problem in connecting node js with react js - Stack Overflow
When making an API call, React will try first try and look it up in the frontend, if it cannot find anything it...
Read more >
Error on running create-react app with Node.js install only via ...
Error on running create-react app with Node.js install only via nvm without node in $PATH and /usr/bin/node.
Read more >
Tutorial: Create a Node.js and React app in Visual Studio
In this tutorial, you learn how to: Create a Node.js project; Add npm packages; Add React code to your app; Transpile JSX; Attach...
Read more >
NPX Create React APP Not Working - YouTube
It should create a new react js project without installing create-... ... create-react-app node:internal/modules/cjs/loader throw error So ...
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