adrianhajdin / project_fitness_app Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://jsmastery.pro
Home Page: https://jsmastery.pro
./src/index.js
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/rules/no-unused-expressions' is not defined by "exports" in C:\Users\msi\Downloads\Github\project_fitness_app\node_modules\eslint\package.json
app renders for 1-2 seconds then it shows white screen please someone explain why this is happening
please check this code on exercise.js:32
ERROR
exercises.slice is not a function
TypeError: exercises.slice is not a function
at Exercises (http://localhost:3000/main.0eff7a31ea01d5c8367a.hot-update.js:61:38)
at renderWithHooks (http://localhost:3000/static/js/bundle.js:49655:22)
at updateFunctionComponent (http://localhost:3000/static/js/bundle.js:52537:24)
at beginWork (http://localhost:3000/static/js/bundle.js:54249:20)
at HTMLUnknownElement.callCallback (http://localhost:3000/static/js/bundle.js:39247:18)
at Object.invokeGuardedCallbackDev (http://localhost:3000/static/js/bundle.js:39291:20)
at invokeGuardedCallback (http://localhost:3000/static/js/bundle.js:39348:35)
at beginWork$1 (http://localhost:3000/static/js/bundle.js:59222:11)
at performUnitOfWork (http://localhost:3000/static/js/bundle.js:58469:16)
at workLoopSync (http://localhost:3000/static/js/bundle.js:58392:9)
Not really an issue, but just a change on alt
value of img
under the LeftArrow component. It should be "left-arrow" instead of "right-arrow".
const LeftArrow = () => {
const { scrollPrev } = useContext(VisibilityContext);
return (
<Typography onClick={() => scrollPrev()} className="right-arrow">
<img src={LeftArrowIcon} alt="left-arrow" />
</Typography>
);
}
I have exactly copied the LeftArrow & RightArrow code but while clicking on the Arrows nothing happening.
In ExerciseVideos {name} props doesnt show up.
i am getting the following error and my api is working
exercises.slice is not a function
TypeError: exercises.slice is not a function
at Exercises (http://localhost:3000/main.9ca945adc80ee5b1342b.hot-update.js:59:38)
at renderWithHooks (http://localhost:3000/static/js/bundle.js:48253:22)
at updateFunctionComponent (http://localhost:3000/static/js/bundle.js:51135:24)
at beginWork (http://localhost:3000/static/js/bundle.js:52847:20)
at HTMLUnknownElement.callCallback (http://localhost:3000/static/js/bundle.js:37845:18)
at Object.invokeGuardedCallbackDev (http://localhost:3000/static/js/bundle.js:37889:20)
at invokeGuardedCallback (http://localhost:3000/static/js/bundle.js:37946:35)
at beginWork$1 (http://localhost:3000/static/js/bundle.js:57820:11)
at performUnitOfWork (http://localhost:3000/static/js/bundle.js:57067:16)
at workLoopSync (http://localhost:3000/static/js/bundle.js:56990:9)
`const axios = require("axios");
export const exerciseOptions = {
method: "GET",
url: "https://exercisedb.p.rapidapi.com/exercises/bodyPartList",
headers: {
"X-RapidAPI-Key": "18a665e221mshf1d7bea141505c2p1564a3jsnaa88558458d8",
"X-RapidAPI-Host": "exercisedb.p.rapidapi.com",
},
};
export const fetchData = async (url, options) => {
const res = await fetch(url, options);
const data = await res.json();
return data;
};
`
idk why my API call only showing 2 or 3 result for only specific string and sometimes it even returning an empty array does anybody know how to fix this?
Both left and right scroll button are not functional. I have checked on click is working but not the respective scroll functions. I have used same library having same version
GET https://exercisedb.p.rapidapi.com/exercises 429 (Too Many Requests).
GET https://exercisedb.p.rapidapi.com/exercises/bodyPartList 403 (Forbidden).
Error fetching body parts data: TypeError: bodyPartsData is not iterable
at fetchExercisesData (SearchExercises.js:19:1).
GET https://exercisedb.p.rapidapi.com/exercises/bodyPartList 429 (Too Many Requests).
I have created a website but is not showing the content , it is just showing a white blank page , please help me how to solve this error on my code .
exercisesData.filter is not a function
at handleSearch
populate exercises into firestore
Please help me add specific icons instead of just the gym icon in the BodyPart.js. I'm having trouble adding icons like a back icon for back exercises, a chest icon for chest exercises, and so on for other body parts. Your assistance with this would be greatly appreciated.
Excellent tut! Went through the whole thing, paused and retyped whole code. I noticed I got a white blank screen near the end. I wanted to test different features to look at the code. I cloned the repo, inserted my rapid api key in .env and when I npm start it loads for a 1 second then goes to a blank white screen! Weirdly it seemed to work briefly a few days ago. So decided to start clean delete all folders, git clone and npm start (after npm install --legacy-peer-deps but now I have a blank screen immediately after loading(app appears for a second then goes blank white screen). I am tearing my hair out trying to figure out why this might be. Does anyone have this issue? The code hasn't changed and it is only a month. So I am at a loss!! Any help to why this might be would be amazing..
Line 26:6:
React Hook useEffect has a missing dependency: 'setExercises'. Either include it or remove the dependency array. If 'setExercises'
changes too often, find the parent component that defines it and wrap that definition in useCallback react-hooks/exhaustive-deps
when i click on the body part i get this error
tried to create new account on the rapidApi but still facing same issue.
exercises.slice is not a function
TypeError: exercises.slice is not a function
at Exercises (http://localhost:3000/static/js/bundle.js:428:38)
at renderWithHooks (http://localhost:3000/static/js/bundle.js:47733:22)
at updateFunctionComponent (http://localhost:3000/static/js/bundle.js:50615:24)
at beginWork (http://localhost:3000/static/js/bundle.js:52327:20)
at HTMLUnknownElement.callCallback (http://localhost:3000/static/js/bundle.js:37325:18)
at Object.invokeGuardedCallbackDev (http://localhost:3000/static/js/bundle.js:37369:20)
at invokeGuardedCallback (http://localhost:3000/static/js/bundle.js:37426:35)
at beginWork$1 (http://localhost:3000/static/js/bundle.js:57300:11)
at performUnitOfWork (http://localhost:3000/static/js/bundle.js:56547:16)
at workLoopSync (http://localhost:3000/static/js/bundle.js:56470:9)
Compiled with problems:X
ERROR in ./src/components/HorizontalScrollbar.js 7:0-72
Module not found: Error: Package path ./dist/types is not exported from package D:\WD\react\gym_exercises\node_modules\react-horizontal-scrolling-menu (see exports field in D:\WD\react\gym_exercises\node_modules\react-horizontal-scrolling-menu\package.json)
What to do???
Even after following the steps mentioned in the video the youtube video section is not getting displayed but is showing on the console.
Unable to style the buttons of material UI. Changing the color to the custom one seems to fail.
Using makes makestyles as a workaround.
You have uploaded your .env file on github. Kindly remove your API Key. So that, no one can access that API for security.
please check this code on SearchExercises.js: 18
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.