@rob I am having a very similar issue. I went through the entire dbAuth setup and it worked fine.
Then I tried to add a name
attribute to the User and now I think my graphql server is not spinning up correctly.
Steps I’ve done so far:
- updated the
prisma.schema
with the new attribute. - ran
yarn rw prisma migrate dev
and created the migration - added
name: userAttributes.name,
to thedb.user.create
in the signUp handler inapi/src/functions/auth.ts
- added
name
field to the sign up form - ran
yarn rw g types
- ran
yarn rw build
just in case
After all of that when running yarn rw dev
i am getting:
yarn rw dev
gen | Generating TypeScript definitions and GraphQL schemas...
gen | 19 files generated
web | assets by path static/js/*.js 4.48 MiB
web | asset static/js/app.bundle.js 3 MiB [emitted] (name: app) 1 related asset
web | asset static/js/src_pages_ResetPasswordPage_ResetPasswordPage_tsx.chunk.js 404 KiB [emitted] 1 related asset
web | asset static/js/src_pages_SignupPage_SignupPage_tsx.chunk.js 380 KiB [emitted] 1 related asset
web | asset static/js/src_pages_LoginPage_LoginPage_tsx.chunk.js 380 KiB [emitted] 1 related asset
web | asset static/js/src_pages_ForgotPasswordPage_ForgotPasswordPage_tsx.chunk.js 297 KiB [emitted] 1 related asset
web | asset static/js/runtime-app.bundle.js 50.4 KiB [emitted] (name: runtime-app) 1 related asset
web | asset static/js/src_pages_HomePage_HomePage_tsx.chunk.js 4.19 KiB [emitted] 1 related asset
web | asset static/js/src_pages_NotFoundPage_NotFoundPage_tsx.chunk.js 3.38 KiB [emitted] 1 related asset
web | asset README.md 1.9 KiB [emitted] [from: public/README.md] [copied]
web | asset favicon.png 1.7 KiB [emitted] [from: public/favicon.png] [copied]
web | asset index.html 483 bytes [emitted]
web | asset robots.txt 24 bytes [emitted] [from: public/robots.txt] [copied]
web | Entrypoint app 3.05 MiB (2.98 MiB) = static/js/runtime-app.bundle.js 50.4 KiB static/js/app.bundle.js 3 MiB 2 auxiliary assets
web | orphan modules 1.25 MiB [orphan] 559 modules
web | runtime modules 34 KiB 18 modules
web | modules by path ../node_modules/ 2.7 MiB 886 modules
web | modules by path ./src/ 64.7 KiB
web | modules by path ./src/pages/ 37.6 KiB
web | ./src/pages/FatalErrorPage/FatalErrorPage.tsx 3.11 KiB [built] [code generated]
web | ./src/pages/ForgotPasswordPage/ForgotPasswordPage.tsx 5.31 KiB [built] [code generated]
web | + 5 modules
web | modules by path ./src/*.css 22.2 KiB
web | ./src/scaffold.css 2.39 KiB [built] [code generated]
web | ./src/index.css 2.38 KiB [built] [code generated]
web | + 2 modules
web | modules by path ./src/*.tsx 4.86 KiB
web | ./src/App.tsx 1.84 KiB [built] [code generated]
web | ./src/Routes.tsx 3.02 KiB [built] [code generated]
web | webpack 5.70.0 compiled successfully in 2495 ms
web | <e> [webpack-dev-server] [HPM] Error occurred while proxying request localhost:8910/auth?method=getToken to http://[::1]:8911/ [ECONNREFUSED] (https://nodejs.org/api/errors.html#errors_common_system_errors)
web | <e> [webpack-dev-server] [HPM] Error occurred while proxying request localhost:8910/auth?method=getToken to http://[::1]:8911/ [ECONNREFUSED] (https://nodejs.org/api/errors.html#errors_common_system_errors)
Do you have any clue of whay might have going on here? or what can I try? am I missing something?