Closed anikbrazeau closed 1 year ago
Describe the bug Navigating away from landing page on localhost:3000 gives an error:
localhost:3000
ℹ Waiting for file changes 12:44:14 ℹ Memory usage: 565 MB (RSS: 851 MB) 12:44:14 ℹ Listening on: http://localhost:3000/ 12:44:14 -- en/index.vue | locale: en-CA 12:44:17 ERROR Cannot read properties of undefined (reading 'includes') 12:44:21 at asyncData (_topic.vue:145:0) at promisify (.nuxt/utils.js:314:0) at server.js:4513:82 at Array.map (<anonymous>) at module.exports../.nuxt/server.js.__webpack_exports__.default (.nuxt/server.js:269:0)`
To Reproduce
npm run dev
Expected behavior Topic > Resources, page loading content
Screenshots
Desktop (please complete the following information):
Additional context Daine and Anik have both tested locally, with similar result.
This issue is caused by the locale not being properly set (only happens in dev environment). This code fixes this issue.
Describe the bug Navigating away from landing page on
localhost:3000
gives an error:To Reproduce
npm run dev
localhost:3000
and click on "Hiring"Expected behavior Topic > Resources, page loading content
Screenshots
Desktop (please complete the following information):
Additional context Daine and Anik have both tested locally, with similar result.