'firebase' npm package is used in Functions backend for .initializeApp(config) and .Auth().signInWithEmailAndPassword(email, password)
Firebase deploy/serve throws this error:
+ functions: Using node@16 from host.
i functions: Watching "C:\Users\ewert\Documents\Study\Udemy\Authentication\Firebase Practice\functions" for Cloud Functions...
!! functions: Failed to load function definition from source: FirebaseError: Failed to load function definition from source: Failed to generate manifest from function source: Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in C:\Users\ewert\Documents\Study\Udemy\Authentication\Firebase Practice\functions\node_modules\firebase\package.json
Re-installing firebase package, updating Node, npm and using 'firebase-admin' did not solve the issue.
Tutorial link, step Section 2.1
Firebase version: 11.7.0
I'm very thankful if you can help.