I want to write a function in server.js.
export const doCreateUserWithEmailAndPassword = (email, password) =>
auth.createUserWithEmailAndPassword(email, password);
So here, I need to get email and password from the client side. When I try to export the function in server.js and use it in client side. I got an error that said
Module not found: You attempted to import ../../../../server/products which fall outside of the project src/ directory. Relative imports outside of src/ are not supported. You can either move it inside src/, or add a symlink to it from project's node_modules/.
Is there anyway I can call a function from server side?