-
Notifications
You must be signed in to change notification settings - Fork 208
Cannot deploy function when using shared ts module #1587
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I found a few problems with this issue:
|
Hi @Dzivo. Can you provide a sample for me to test? |
@exaby73 i am swamped with work but you could just create 2 typescript projects in folder and add a reference from one to the other you can also us Paths to simplify imports as well |
This behavior is intentional. All local code dependencies must reside within the To work around this, you can package the local project you're depending on into a Thanks for reporting this! If you’re still encountering issues, feel free to reopen this issue or open a new one. |
Related issues
[REQUIRED] Version info
node:
v20.14.0
firebase-functions:
firebase-tools:
13.14.2
firebase-admin:
12.1.0
[REQUIRED] Test case
[REQUIRED] Steps to reproduce
Run
firebase deploy --only functions:anyFunction
[REQUIRED] Expected behavior
Deploys a function
[REQUIRED] Actual behavior
code: 'MODULE_NOT_FOUND',
Were you able to successfully deploy your functions?
Error: Cannot find module 'mysharedmodule/models'
If needed i can append ts configs as well but it should be easy to test just create a project reference
https://www.typescriptlang.org/docs/handbook/project-references.html
The text was updated successfully, but these errors were encountered: