Comments (23)
I fixed this by editing the baseUrl to: baseUrl: 'https://shazam-core.p.rapidapi.com',
and then editing the builder queries like so:
getTopCharts: builder.query({ query: () => '/v1/charts/world' }),
...
getArtistDetails: builder.query({ query: (artistId) =>'/v2/artists/details?artist_id=${artistId}' }),
Adding the back ticks in the appropriate places
from project_music_player.
I fixed this by editing the baseUrl to:
baseUrl: 'https://shazam-core.p.rapidapi.com',
and then editing the builder queries like so:getTopCharts: builder.query({ query: () => '/v1/charts/world' }),
...getArtistDetails: builder.query({ query: (artistId) =>'/v2/artists/details?artist_id=${artistId}' }),
Adding the back ticks in the appropriate places
I did that also, but what u changed in ArtistDetails.jsx for RelatedSongs data={Object.values(artistData?.songs)}
from project_music_player.
nodata fetched..blank screen now.
from project_music_player.
CHECK THE EXTENSION RESULT IN VS CODE..ABOVE
from project_music_player.
also when i try to use back ticks the formatting error goes away but i get a white blank screen and the app crashes..
from project_music_player.
from project_music_player.
the comma and the closing braces and bracs are there just not visible in the screen shot
from project_music_player.
I fixed this by editing the baseUrl to:
baseUrl: 'https://shazam-core.p.rapidapi.com',
and then editing the builder queries like so:getTopCharts: builder.query({ query: () => '/v1/charts/world' }),
...getArtistDetails: builder.query({ query: (artistId) =>'/v2/artists/details?artist_id=${artistId}' }),
Adding the back ticks in the appropriate placesI did that also, but what u changed in ArtistDetails.jsx for RelatedSongs data={Object.values(artistData?.songs)}
We can do one thing since there are no related songs in the new API call(which is - v2 one)
We can display that artist's Top songs instead of related songs.
For that u can declare a new variable called 'topSongsData'. Like this:
const topSongsData = artistData?.data[0]?.views['top-songs']?.data
Now u can pass this variable as data in RelatedSongs Component. Like this:
<RelatedSongs
data={topSongsData}
artistId={artistId}
isPlaying={isPlaying}
activeSong={activeSong}
One Final change has to be done in RelatedSongs component since there is no 'key' present in topSongsData, instead we can use 'id' value from topSongsData. Change in RelatedSongs data mapping looks like this.
{data?.map((song,i)=>(
<SongBar key={${song.key}-${song.id}-${artistId}
}
song ={song }
i={i}
artistId={artistId}
isPlaying={isPlaying}
activeSong={activeSong}
handlePauseClick={handlePauseClick}
handlePlayClick ={handlePlayClick}
/>
))}
Only the bolded line is changed. rest of the code is the same.
Hope this works.
from project_music_player.
Please give the clear code or the screenshot of what have you implied
And I have the same issue
from project_music_player.
Please give the clear code or the screenshot of what have you implied And I have the same issue
Hope these screenshots help u to understand my previous comment.
Let me know if u face any issues.
from project_music_player.
Please give the clear code or the screenshot of what have you implied And I have the same issue
Hope these screenshots help u to understand my previous comment. Let me know if u face any issues.
Can you also post screenshot of your DetailsHeader file? I'm getting an error that the artistId in that element is undefined
from project_music_player.
Please give the clear code or the screenshot of what have you implied And I have the same issue
Hope these screenshots help u to understand my previous comment. Let me know if u face any issues.
The error is still there and as soon as the shazamCore.js is updated the whole stops working and it shows the same error. And how have you removed the v1 from the baseUrl in line 6? Could you please help me in that
And if the API needs to be updated, could you please record a loom video of yours explaining it? It would be helpful
from project_music_player.
Please give the clear code or the screenshot of what have you implied And I have the same issue
Hope these screenshots help u to understand my previous comment. Let me know if u face any issues.The error is still there and as soon as the shazamCore.js is updated the whole stops working and it shows the same error. And how have you removed the v1 from the baseUrl in line 6? Could you please help me in that
And if the API needs to be updated, could you please record a loom video of yours explaining it? It would be helpful
i removed 'v1' from baseurl and updated in all queries. U can see that in shazamcore screenshot. Whatever issues u face please paste the screenshots here.
from project_music_player.
https://www.loom.com/share/56f12c2f8087425488ce5583b0f1fc44 -- Please watch this by pasting the link in your new tab and you will get the idea of the problem I am facing
The other screenshot data have even been changed but it is still not functioning properly
from project_music_player.
Please give the clear code or the screenshot of what have you implied And I have the same issue
Hope these screenshots help u to understand my previous comment. Let me know if u face any issues.The error is still there and as soon as the shazamCore.js is updated the whole stops working and it shows the same error. And how have you removed the v1 from the baseUrl in line 6? Could you please help me in that
And if the API needs to be updated, could you please record a loom video of yours explaining it? It would be helpfuli removed 'v1' from baseurl and updated in all queries. U can see that in shazamcore screenshot. Whatever issues u face please paste the screenshots here.
If you could please go through the video and look at the screenshots and identify the error and help me find the solution it would really be a great help
from project_music_player.
Send me the SS of error which is logged in console
from project_music_player.
And if I remove 0 then the artwork is the issue
from project_music_player.
the issue still persists...the screenshots have been implement in eact however the status of the app has not changed....
from project_music_player.
i meant impleneted in react as per screenshots above
from project_music_player.
I guess the error has been in the TopPlay component which is unable to fetch the 0th element using adamid @adrianhajdin @PavanKalyan717 could you please help us with this issue #24
from project_music_player.
And if I remove 0 then the artwork is the issue
In the Details Header component change the src of img tag to artistId ? artistData?.data[0].attributes?.artwork?.url
Hope this helps
from project_music_player.
hey bro can you please provide me your api key of the shazam core api. I want to build this project for my resume. please.....
from project_music_player.
from project_music_player.
Related Issues (20)
- Song Details Component not rendering HOT 1
- Artist details is not being rendered HOT 1
- Related songs play button not working HOT 2
- Top Play component is unable to fetch artist details in line no 112 HOT 6
- Swiper not working in TopPlay component HOT 2
- artist id appears undefined in route link HOT 1
- The API has shifted to the paid version use only. HOT 4
- Error occurred in the <TopPlay> component
- The TopPlay component isn't rendering on the right on desktop screen
- The Source is not being fetched HOT 5
- data.map is not a function HOT 2
- VM325 react_devtools_backend.js:4012 Warning: Each child in a list should have a unique "key" prop. HOT 2
- Shazam core api premium HOT 1
- vite' is not recognized as an internal or external command, operable program or batch file. HOT 3
- TopPlay issue --> Uncaught TypeError: Cannot read properties of undefined (reading '0') HOT 3
- Song Details Not available HOT 2
- Mobile issue HOT 14
- Browser console show 403 error HOT 1
- Npm run dev - ERR dev not found HOT 4
- Lyrics not found HOT 1
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.
from project_music_player.