You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Firebase functions don't support monorepos properly. This is why we need to use relative imports and install all dependencies specifically in the functions/ project.
as a dependency in the functions/package.json file and use regular imports, e.g. import { FirestoreAdmin } from '@socialincome/shared/src/firebase/admin/FirestoreAdmin'
instead of import { FirestoreAdmin } from '../../../../shared/src/firebase/admin/FirestoreAdmin'
Firebase functions don't support monorepos properly. This is why we need to use relative imports and install all dependencies specifically in the
functions/
project.By integrating this project, the problem could be solved: https://github.com/0x80/isolate-package
The goal would be to be able to specify
"@socialincome/shared": "^1.0.0"
as a dependency in the
functions/package.json
file and use regular imports, e.g.import { FirestoreAdmin } from '@socialincome/shared/src/firebase/admin/FirestoreAdmin'
instead of
import { FirestoreAdmin } from '../../../../shared/src/firebase/admin/FirestoreAdmin'
More info about the problem can be found here: firebase/firebase-tools#653
The text was updated successfully, but these errors were encountered: