Git Product home page Git Product logo

react-weather-app's Introduction

React Weather App - ReactJS Projects

Demo - Deployed over Github Pages

https://ayushkul.github.io/react-weather-app

Full development Tutorial

Youtube Tutorial - The Indian Dev

APIs Used

Open Weather APIs

https://openweathermap.org/current

API Info

  • Method: GET
  • URL: https://api.openweathermap.org/data/2.5/weather?q={CITY_NAME}&appid={API_KEY}

Icons & Font -

  • Icons: ayushkul/react-weather-app
  • Font Link: <link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&display=swap" rel="stylesheet">

Libraries used

  • styled-components
  • axios
  • react-scripts

Whom do I talk to?

How can I appreciate this repo?

react-weather-app's People

Contributors

ayushkul avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

react-weather-app's Issues

'CloseButton' is assigned a value but never used no-unused-vars

Describe the bug

The following variable is unused in the codebase causing a warning log in the dev console:

const CloseButton = styled.span`
  padding: 2px 3px;
  background-color: black;
  border-radius: 50%;
  color: white;
  position: absolute;
`;

Steps to reproduce:

  • start the project in development mode.
  • open the developer console in Chrome.

Expected results:

We shouldn't get any log error/warning message in the console.

Actual results:

We get the following warning log message:

Line 43:7:  'CloseButton' is assigned a value but never used  no-unused-vars

Screenshot 2022-11-23 at 3 50 35 PM

Proposed solution:

Let's remove the unused variable if it's not going to use. Otherwise, please point out where should be used so we can use it in the codebase accordingly.

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/tokenize' is not defined by "exports" in the package.jso

Describe the bug

When trying to run the project in development mode using NodeJS version 18.7.0, the app doesn't compile & throws an error message.

Steps to reproduce:

  • Having Node's version 18.7.0 installed.
  • navigate to the project's root & install the project's dependencies with the following command: npm i.
  • try starting the project with npm run start.

Expected results:
It was expected to compile in dev mode & launch React's an app in the browser like in the screenshot below:

Screenshot 2022-11-23 at 3 32 09 PM

Actual results:
It doesn't compile & it throws the following error instead:

[Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/tokenize' is not defined by "exports" in the package.jso]

Workaround: 1

  • run the following commands:
npm i -D postcss@latest
export NODE_OPTIONS=--openssl-legacy-provider
npm install

Workaround: 2

  • uninstall NodeJs 18.7.0 version.
  • install NodeJs 19.1.0 version.

Start the project with the command: npm run start. The app should compile now.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.