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
{{ message }}
Repository navigation
firebase deploy --only functions run successfully without deploy any function if run within yarn workspace (Already nohoist every dependency). #5191
Put the above package.json, index.js and firebase.json into test folder under a simple yarn workspace
/root
/packages/test
/package.json (worksapce package.json)
Run yarn, and cd to packages/test to verify all dependency are installed locally (within the same folder)
Run firebase deploy --only functions.
[REQUIRED] Expected behavior
Function hello been successfully created.
[REQUIRED] Actual behavior
deploy command run successfully without error, but no function deployed.
Now, simply copy the packages/test folder to anywhere outside the workspace root and cd to the new folder immediately run: firebase deploy --only functions. Function hello successfully deployed.
We've recently discovered a bug with the 4.0 SDK and workspaces. We have a temporary fix coming out very soon that will unlock the functionality of older SDKs, but some V2 functions require a deeper fix. Stay tuned.
Thank you for the reply @inlined, just asking is this update also going to support deploy function with unpublished local workspace dependency? currently I notice the deploy process assume all dependencies are publish available, which is not true for workspace use case, we have many unpublished dependencies.
We reverted back the change that broke many users in v4.0.2 of the firebase functions sdk.
We are working on a long term solution to make the function deployment aware of workspaces and other dev toolings that changes where npm packages are installed (e.g. pnpm).
In the meantime, please give 4.0.2 a try. Would appreciate your feedbacks.
Activity
inlined commentedon Oct 31, 2022
We've recently discovered a bug with the 4.0 SDK and workspaces. We have a temporary fix coming out very soon that will unlock the functionality of older SDKs, but some V2 functions require a deeper fix. Stay tuned.
TrustyTechSG commentedon Nov 1, 2022
Thank you for the reply @inlined, just asking is this update also going to support deploy function with unpublished local workspace dependency? currently I notice the deploy process assume all dependencies are publish available, which is not true for workspace use case, we have many unpublished dependencies.
taeold commentedon Nov 2, 2022
Same bug, reported on #5517. Noted here for cross-tracking.
taeold commentedon Nov 7, 2022
Also similar bug in #5145.
taeold commentedon Nov 7, 2022
We reverted back the change that broke many users in v4.0.2 of the firebase functions sdk.
We are working on a long term solution to make the function deployment aware of workspaces and other dev toolings that changes where npm packages are installed (e.g. pnpm).
In the meantime, please give 4.0.2 a try. Would appreciate your feedbacks.
See #5517 for more info.
joehan commentedon Feb 14, 2023
Closing since I beleive #5215 fixed this.