diff --git a/.changeset/green-cheetahs-behave.md b/.changeset/green-cheetahs-behave.md
new file mode 100644
index 0000000000000000000000000000000000000000..4c3ed99e4497a1f83dfaaff7e938731fb47d69db
--- /dev/null
+++ b/.changeset/green-cheetahs-behave.md
@@ -0,0 +1,5 @@
+---
+"create-llama": patch
+---
+
+Fix errors in building the frontend
diff --git a/templates/types/streaming/nextjs/app/components/ui/chat/chat-message/codeblock.tsx b/templates/types/streaming/nextjs/app/components/ui/chat/chat-message/codeblock.tsx
index e71a408cc8031385703af2a31fe2a706326dd9c1..85ce66319bbc3220bc7a9ed334608dbff8b504f8 100644
--- a/templates/types/streaming/nextjs/app/components/ui/chat/chat-message/codeblock.tsx
+++ b/templates/types/streaming/nextjs/app/components/ui/chat/chat-message/codeblock.tsx
@@ -68,7 +68,7 @@ const CodeBlock: FC<Props> = memo(({ language, value }) => {
       3,
       true,
     )}${fileExtension}`;
-    const fileName = window.prompt("Enter file name" || "", suggestedFileName);
+    const fileName = window.prompt("Enter file name", suggestedFileName);
 
     if (!fileName) {
       // User pressed cancel on prompt.