Register not working
- Dominant language
- Vue
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
When running the Electron app in Dev mode, I get the following error:
```
VM4 sandbox_bundle:2 Unable to load preload script: /Users/michael/development/oss/testing-copilot/packages/app/dist-electron/preload.cjs
VM4 sandbox_bundle:2 SyntaxError: Unexpected token 'export'
at runPreloadScript (VM4 sandbox_bundle:2:151950)
at VM4 sandbox_bundle:2:152269
at VM4 sandbox_bundle:2:152424
at ___electron_webpack_init__ (VM4 sandbox_bundle:2:152428)
at VM4 sandbox_bundle:2:152551
```
Then when I fill in the Register form, I see the following in dev tools:
```
Register form submitted: Proxy(Object) {name: 'Bob', email: 'bob@example.com', password: 'password'}[[Handler]]: MutableReactiveHandler[[Target]]: Object[[IsRevoked]]: false
Register.vue:104 Registration error: TypeError: Cannot read properties of undefined (reading 'registerUser')
at handleSubmit (Register.vue:86:54)
at cache..cache. (chunk-RG7SSSGF.js?v=6fb92234:12509:12)
at callWithErrorHandling (chunk-RG7SSSGF.js?v=6fb92234:2536:19)
at callWithAsyncErrorHandling (chunk-RG7SSSGF.js?v=6fb92234:2543:17)
at HTMLFormElement.invoker (chunk-RG7SSSGF.js?v=6fb92234:11543:5)
handleSubmit @ Register.vue:104
cache..cache. @ chunk-RG7SSSGF.js?v=6fb92234:12509
callWithErrorHandling @ chunk-RG7SSSGF.js?v=6fb92234:2536
callWithAsyncErrorHandling @ chunk-RG7SSSGF.js?v=6fb92234:2543
invoker @ chunk-RG7SSSGF.js?v=6fb92234:11543
```
Make the Register functionality work, and assert that the user exists in the database. Write an e2e test that proves this works before submitting your PR
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.