vincepmartin / memecycle

Basic riding activity recorder.
0 stars 0 forks source link

Get the main branch working in my current dev env again. #20

Open vincepmartin opened 3 years ago

vincepmartin commented 3 years ago

I am currently crashing out trying to upload an image and the included example fit file.

Getting this inside of the browser window.

Error!

TypeError: rideData.sessions[0] is undefined

Getting this in the console.

./src/components/RideView/RideView.js
  Line 20:30:  Expected to return a value at the end of arrow function                                                                                                                                                                                                    array-callback-return
  Line 28:30:  Expected to return a value at the end of arrow function                                                                                                                                                                                                    array-callback-return
  Line 55:18:  'setZoom' is assigned a value but never used                                                                                                                                                                                                               no-unused-vars
  Line 86:16:  img elements must have an alt prop, either with meaningful text, or an empty string for decorative images                                                                                                                                                  jsx-a11y/alt-text
  Line 140:8:  React Hook React.useEffect has missing dependencies: 'rideID' and 'rideType'. Either include them or remove the dependency array. You can also replace multiple useState variables with useReducer if 'setRideData' needs the current value of 'rideType'  react-hooks/exhaustive-deps webpackHotDevClient.js:138
./src/components/ElevationChart/ElevationChart.js
  Line 5:41:  'width' is assigned a value but never used   no-unused-vars
  Line 5:48:  'height' is assigned a value but never used  no-unused-vars webpackHotDevClient.js:138
rideType!!!! RideView.js:111
fit RideView.js:112
TypeError: rideData.sessions[0] is undefined
    setDistances RideView.js:92
    RideView RideView.js:132
    promise callback*RideView/< RideView.js:100
    React 6
    unstable_runWithPriority scheduler.development.js:653
    React 3
    workLoop scheduler.development.js:597
    flushWork scheduler.development.js:552
    performWorkUntilDeadline scheduler.development.js:164
    js scheduler.development.js:187
    js scheduler.development.js:857
    Webpack 20
RideView.js:137