The auto deployed versions of PRs of our UI repo with netlify seem to be broken.
When loading a page in the chrome console I see:
default_handlers.js:136 Uncaught TypeError: Cannot read properties of undefined (reading 'post')
at eval (default_handlers.js:136:39)
at ./src/backend/mocks/default_handlers.js (app.js:3440:1)
at __webpack_require__ (app.js:4406:42)
at eval (browser.js:6:75)
at ./src/backend/mocks/browser.js (app.js:3429:1)
at __webpack_require__ (app.js:4406:42)
at eval (main.js:37:7)
at ./src/main.js (app.js:3462:1)
at __webpack_require__ (app.js:4406:42)
at app.js:4672:109
eval @ default_handlers.js:136
./src/backend/mocks/default_handlers.js @ app.js:3440
__webpack_require__ @ app.js:4406
eval @ browser.js:6
./src/backend/mocks/browser.js @ app.js:3429
__webpack_require__ @ app.js:4406
eval @ main.js:37
./src/main.js @ app.js:3462
__webpack_require__ @ app.js:4406
(anonymous) @ app.js:4672
__webpack_require__.O @ app.js:4442
(anonymous) @ app.js:4673
(anonymous) @ app.js:4675
vue.esm.js:9390 You are running Vue in development mode.
Make sure to turn on production mode when deploying for production.
See more tips at https://vuejs.org/guide/deployment.htmlpresumably some aspect of the mock store definitions has got broken somewhere.
A/C:
- fix netlify previews with mock store so they work again