Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

React-Native: React could not be found within project or in these directories

I fixed it by replacing

import Foobar from "screens/foobar";

with

import Foobar from "./screens/foobar";

note the beginning ./ in the path


I was facing the same error when upgrading from v0.60.3 to v0.61.4.

I needed to change

import React, { Component } from 'React';

to

import React, { Component } from 'react';

Notice the lowercase 'r'.

Tags:

Ios

Objective C

Xcode

Reactjs

React Native

Related

Python Setuptools and PBR - how to create a package release using the git tag as the version? SwiftUI: Automatic preview updating paused, always How to increase Kotlin coroutines Dispatchers.IO size on Android? Authenticate the Test User { "error_type": "OAuthException", "code": 400, "error_message": "Invalid platform app" } What's the purpose of "docker build --pull"? teradatasql: runtime/cgo: could not obtain pthread_keys What does a single quote inside a C# date time format mean? Why am I getting a "Cannot access 'variable' before initialization" error from a subscriber referencing itself? NetworkBoundResource with Kotlin coroutines Select box binding in blazor Kafka: Continuously getting FETCH_SESSION_ID_NOT_FOUND Create PDF with multiple pages

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy