GeriLife / wellbeing-client

Client-only code for Wellbeing project.
Apache License 2.0
0 stars 0 forks source link

Home details and report #6

Closed shailee-m closed 3 years ago

shailee-m commented 3 years ago

Adding details and report page for each home. Depends on #5

brylie commented 3 years ago

When rendering an individual Home page, The following error appears in a toast message:

TypeError: d3.nest is not a function<br> &nbsp; &nbsp;at Object.getHomeActivityTypeMetrics (server/methods/charts/homeCharts.js:125:15)<br> &nbsp; &nbsp;at packages/simple_rest.js:383:33<br> &nbsp; &nbsp;at packages/simple_json-routes.js:98:9
shailee-m commented 3 years ago

We need to include package-lock.json in our repository.

the project was setup with yarn by default. yarn.lock is committed. Should I remove yarn?

shailee-m commented 3 years ago
TypeError: d3.nest is not a function<br> &nbsp; &nbsp;at Object.getHomeActivityTypeMetrics (server/methods/charts/homeCharts.js:125:15)<br> &nbsp; &nbsp;at packages/simple_rest.js:383:33<br> &nbsp; &nbsp;at packages/simple_json-routes.js:98:9

I think the yarn.lock has the exact d3 version. Can your reinstall the node_modules using the command yarn and check?

brylie commented 3 years ago

Oops. I forgot we are using Yarn here. My bad.