diff --git a/compiler/forget/src/__tests__/fixtures/compiler/error.lambda-with-fbt.expect.md b/compiler/forget/src/__tests__/fixtures/compiler/error.lambda-with-fbt.expect.md
new file mode 100644
index 0000000000..7e2e5e0b32
--- /dev/null
+++ b/compiler/forget/src/__tests__/fixtures/compiler/error.lambda-with-fbt.expect.md
@@ -0,0 +1,45 @@
+
+## Input
+
+```javascript
+import { fbt } from "fbt";
+
+function Component() {
+ const buttonLabel = () => {
+ if (!someCondition) {
+ return {"Purchase as a gift"};
+ } else if (
+ !iconOnly &&
+ showPrice &&
+ item?.current_gift_offer?.price?.formatted != null
+ ) {
+ return (
+
+ {"Gift | "}
+
+ {item?.current_gift_offer?.price?.formatted}
+
+
+ );
+ } else if (!iconOnly && !showPrice) {
+ return {"Gift"};
+ }
+ };
+
+ return (
+
+
+
+ );
+}
+
+```
+
+
+## Error
+
+```
+Cannot read properties of null (reading 'end')
+```
+
+
\ No newline at end of file
diff --git a/compiler/forget/src/__tests__/fixtures/compiler/error.lambda-with-fbt.js b/compiler/forget/src/__tests__/fixtures/compiler/error.lambda-with-fbt.js
new file mode 100644
index 0000000000..539fc7e1f6
--- /dev/null
+++ b/compiler/forget/src/__tests__/fixtures/compiler/error.lambda-with-fbt.js
@@ -0,0 +1,30 @@
+import { fbt } from "fbt";
+
+function Component() {
+ const buttonLabel = () => {
+ if (!someCondition) {
+ return {"Purchase as a gift"};
+ } else if (
+ !iconOnly &&
+ showPrice &&
+ item?.current_gift_offer?.price?.formatted != null
+ ) {
+ return (
+
+ {"Gift | "}
+
+ {item?.current_gift_offer?.price?.formatted}
+
+
+ );
+ } else if (!iconOnly && !showPrice) {
+ return {"Gift"};
+ }
+ };
+
+ return (
+
+
+
+ );
+}