Skip to content

Dependency conflict error while running in localhost #330

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: source
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,16 @@ Then install the required Dependencies using:
yarn install
```

*If you run into a dependencies issue, try removing `node_modules`.*
*For installation using node:

npm install

*For conflict dependency error:
use npm install --force.

*After installation:
run npm start


After installation, run:
```
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"homepage": "https://firstcontributions.github.io/",
"devDependencies": {
"enzyme": "^3.0.0",
"gh-pages": "^3.1.0",
"react-scripts": "^5.0.1",
"gh-pages": "^3.0.0",
"react-scripts": "^1.1.5",
"react-test-renderer": "^15.0.0",
"sw-precache": "^5.2.0"
"sw-precache": "^4.1.0"
},
"dependencies": {
"lodash": "^4.17.19",
Expand Down
22 changes: 16 additions & 6 deletions src/components/ScrollUpButton/ScrollUpButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,21 @@ export default function ScrollUpButton() {
},[])

const scrollUpFn = ()=> window.scrollTo({ top: 0, left: 0, behavior: "smooth" });
return (
currentYPos >= offsetHeight ? <div className="Scroll-Up-Wrapper">
<img className="Scroll-Up"
onClick={scrollUpFn}
src={scrollUp} alt="Scroll Up!" width="64" height="64" />
</div>:<></>
return (
<div>
{currentYPos >= offsetHeight ? (
<div className="Scroll-Up-Wrapper">
<img
className="Scroll-Up"
onClick={scrollUpFn}
src={scrollUp}
alt="Scroll Up!"
width="64"
height="64"
/>
</div>
) : null}
</div>
)

}
Loading