react-weather-app's Issues
images not showing
images are not showing
'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
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.
Add ability to reset the city's weather to make another search
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:
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.