Tiger ๐Ÿ…
Tiger ๐Ÿ…โ€ข3mo ago

convex reset password error

I was able to get all the code in, but getting this error convex development logs:
400 Bad Request: InvalidModules: Hit an error while pushing:
Loading the pushed modules encountered the following
error:
Failed to analyze ResendOTPPasswordReset.js: Uncaught ReferenceError: MessageChannel is not defined
400 Bad Request: InvalidModules: Hit an error while pushing:
Loading the pushed modules encountered the following
error:
Failed to analyze ResendOTPPasswordReset.js: Uncaught ReferenceError: MessageChannel is not defined
literally copied from the docs
7 Replies
Tiger ๐Ÿ…
Tiger ๐Ÿ…OPโ€ข3mo ago
im gonna dig into some github code quickly but i need to get this in asap for a customer hope some1 can respond today ๐Ÿ˜… to be very clear, i dont need to do anything in the app yet this doesnt even deploy to my dev /api/push_config thats the one throwing the errror so it happens when convex dev is running locally i cant do anything yet in the app once this is fixed then i can try if the reset actually works
api/push_config 400 Bad Request: InvalidModules: Hit an error while pushing:
Loading the pushed modules encountered the following
error:
Failed to analyze ResendOTPPasswordReset.js: Uncaught ReferenceError: MessageChannel is not defined
at <anonymous> (../../node_modules/.pnpm/react-dom@19.0.0-rc-8269d55d-20240802_react@19.0.0-rc-8269d55d-20240802/node_modules/react-dom/cjs/react-dom-server.browser.development.js:7222:42)
at node_modules/.pnpm/react-dom@19.0.0-rc-8269d55d-20240802_react@19.0.0-rc-8269d55d-20240802/node_modules/react-dom/cjs/react-dom-server.browser.development.js (../../node_modules/.pnpm/react-dom@19.0.0-rc-8269d55d-20240802_react@19.0.0-rc-8269d55d-20240802/node_modules/react-dom/cjs/react-dom-server.browser.development.js:8793:5)
at __require (convex:/_deps/NSJKQ773.js:9:50)
at node_modules/.pnpm/react-dom@19.0.0-rc-8269d55d-20240802_react@19.0.0-rc-8269d55d-20240802/node_modules/react-dom/server.browser.js (../../node_modules/.pnpm/react-dom@19.0.0-rc-8269d55d-20240802_react@19.0.0-rc-8269d55d-20240802/node_modules/react-dom/server.browser.js:9:0)
at __require (convex:/_deps/NSJKQ773.js:9:50)
at <anonymous> (../../node_modules/.pnpm/@react-email+render@0.0.17_react-dom@19.0.0-rc-8269d55d-20240802_react@19.0.0-rc-8269d55d-202_ymj26d7z74i2lhnpgcqogm2h3q/node_modules/@react-email/render/dist/browser/index.mjs:38:32)
api/push_config 400 Bad Request: InvalidModules: Hit an error while pushing:
Loading the pushed modules encountered the following
error:
Failed to analyze ResendOTPPasswordReset.js: Uncaught ReferenceError: MessageChannel is not defined
at <anonymous> (../../node_modules/.pnpm/react-dom@19.0.0-rc-8269d55d-20240802_react@19.0.0-rc-8269d55d-20240802/node_modules/react-dom/cjs/react-dom-server.browser.development.js:7222:42)
at node_modules/.pnpm/react-dom@19.0.0-rc-8269d55d-20240802_react@19.0.0-rc-8269d55d-20240802/node_modules/react-dom/cjs/react-dom-server.browser.development.js (../../node_modules/.pnpm/react-dom@19.0.0-rc-8269d55d-20240802_react@19.0.0-rc-8269d55d-20240802/node_modules/react-dom/cjs/react-dom-server.browser.development.js:8793:5)
at __require (convex:/_deps/NSJKQ773.js:9:50)
at node_modules/.pnpm/react-dom@19.0.0-rc-8269d55d-20240802_react@19.0.0-rc-8269d55d-20240802/node_modules/react-dom/server.browser.js (../../node_modules/.pnpm/react-dom@19.0.0-rc-8269d55d-20240802_react@19.0.0-rc-8269d55d-20240802/node_modules/react-dom/server.browser.js:9:0)
at __require (convex:/_deps/NSJKQ773.js:9:50)
at <anonymous> (../../node_modules/.pnpm/@react-email+render@0.0.17_react-dom@19.0.0-rc-8269d55d-20240802_react@19.0.0-rc-8269d55d-202_ymj26d7z74i2lhnpgcqogm2h3q/node_modules/@react-email/render/dist/browser/index.mjs:38:32)
Tiger ๐Ÿ…
Tiger ๐Ÿ…OPโ€ข3mo ago
GitHub
convex-auth/test/convex/passwordReset/ResendOTPPasswordReset.ts at ...
Library for built-in auth. Contribute to get-convex/convex-auth development by creating an account on GitHub.
Tiger ๐Ÿ…
Tiger ๐Ÿ…OPโ€ข3mo ago
still gives me the same error ok, im stuck, i tried a custom implementation, but just keeps giving me errors digging into reset field of the password seems like some types are expected and also yes, makes sense convex is supposed to abstract things and handle it for me (considering its a backend as a service), so i guess im stuck ๐Ÿ˜Ÿ @Michal Srb @Wayne MessageChannel not defined error, have other people had it before i couldnt find any how to deal with this? ๐Ÿ™ thank you!
Tiger ๐Ÿ…
Tiger ๐Ÿ…OPโ€ข3mo ago
couldnt find any github issues that are relevant for the issue im having https://github.com/get-convex/convex-auth/issues its pretty urgent to have this implemented, i got all the code just blocked by code from convex not working despite following documentation
GitHub
Issues ยท get-convex/convex-auth
Library for built-in auth. Contribute to get-convex/convex-auth development by creating an account on GitHub.
Indy
Indyโ€ข3mo ago
@sshader
sshader
sshaderโ€ข3mo ago
Does this work with React + React DOM 18 (as opposed to the React 19 RC that it looks like you're using). In general, we're prioritizing support for stable versions over upcoming release candidates, so would highly recommend sticking with the stable versions
Tiger ๐Ÿ…
Tiger ๐Ÿ…OPโ€ข3mo ago
oh good question need to check but yes using react 19 rc so i guess i need to change to react 18 now im using the use action thingy from react 19 in several places ...coming back to this, i had a quick thing to check but i'd have to refactor those places not a major issue, would just be another state to keep tracking of the status to know if pending or not im just ranting out loud ill give react 18 a try @sshader sorry for the late reply btw that did the job fixed it our customer, thanks!

Did you find this page helpful?