-
Notifications
You must be signed in to change notification settings - Fork 34
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
slice issue #4
Comments
same issue |
I ran into the same issue. The problem is that the Free API version no longer supports "daily" or "hourly", so the .slice function is reading undefined. Solution: Remove Forecast components from App.jsx, and daily and hourly from weatherServices.js. This fixes the issue. |
Yes ,Thanks you. I already done it thanks anyway 👍 |
@yang2674 |
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'slice')
at formatForecastWeather (weatherService.js:48:1)
at async getFormattedWeatherData (weatherService.js:75:1)
at async fetchWeather (App.js:23:1)
The text was updated successfully, but these errors were encountered: