Caching of templates not working as intended

In my previous thread I was told by @Brody that a template will always pull the newest github version if you deploy it to a fresh project. This is sadly not working as intended. Just deployed project: a302b761-0ded-4c28-a2be-630daf88c09a My upstream repo has the files: https://github.com/ai-made-approachable/chatbot-ui/tree/main/components/sidebar/items/prompts My newly created source repo is missing the files: https://github.com/ai-made-approachable/chatbot-ui-5/tree/main/components/sidebar/items/prompts I even recreated the template and used a new one. Also did not invalidate the cache: - Old template: https://railway.app/template/RnCYJL - Freshly created template: https://railway.app/template/XjMVyQ And the same issue happens if I use the existing "Chatbot UI" railway template by someone else. It also does NOT pull the current main version and fails building because of missing files: https://railway.app/new/template/dSKMsy Upstream repo: https://github.com/mckaywrigley/chatbot-ui/tree/main/components/sidebar/items/prompts Soure repo: https://github.com/ai-made-approachable/chatbot-ui-existing-template/tree/main/components/sidebar/items/prompts
No description
No description
19 Replies
Percy
Percy•10mo ago
Project ID: a302b761-0ded-4c28-a2be-630daf88c09a
Brody
Brody•10mo ago
what else is missing? because its not like those prompt files are new
AI made approachable
AI made approachableOP•10mo ago
Not sure. But this is where the build starts failing
#13 38.19 Failed to compile.

#13 38.19

#13 38.19 ./components/sidebar/sidebar-create-buttons.tsx

#13 38.19 Module not found: Can't resolve './items/prompts/create-prompt'

#13 38.19

#13 38.19 https://nextjs.org/docs/messages/module-not-found

#13 38.19

#13 38.19 Import trace for requested module:

#13 38.19 ./components/sidebar/sidebar-content.tsx

#13 38.19 ./components/sidebar/sidebar.tsx

#13 38.19 ./components/ui/dashboard.tsx

#13 38.19 ./app/[locale]/[workspaceid]/layout.tsx

#13 38.19

#13 38.19 ./components/sidebar/sidebar-data-list.tsx

#13 38.19 Module not found: Can't resolve './items/prompts/prompt-item'

#13 38.19

#13 38.19 https://nextjs.org/docs/messages/module-not-found

#13 38.19

#13 38.19 Import trace for requested module:

#13 38.19 ./components/sidebar/sidebar-content.tsx



#13 38.19 ./components/sidebar/sidebar.tsx

#13 38.19 ./components/ui/dashboard.tsx

#13 38.19 ./app/[locale]/[workspaceid]/layout.tsx



#13 38.19

#13 38.19

#13 38.19 > Build failed because of webpack errors
#13 38.19 Failed to compile.

#13 38.19

#13 38.19 ./components/sidebar/sidebar-create-buttons.tsx

#13 38.19 Module not found: Can't resolve './items/prompts/create-prompt'

#13 38.19

#13 38.19 https://nextjs.org/docs/messages/module-not-found

#13 38.19

#13 38.19 Import trace for requested module:

#13 38.19 ./components/sidebar/sidebar-content.tsx

#13 38.19 ./components/sidebar/sidebar.tsx

#13 38.19 ./components/ui/dashboard.tsx

#13 38.19 ./app/[locale]/[workspaceid]/layout.tsx

#13 38.19

#13 38.19 ./components/sidebar/sidebar-data-list.tsx

#13 38.19 Module not found: Can't resolve './items/prompts/prompt-item'

#13 38.19

#13 38.19 https://nextjs.org/docs/messages/module-not-found

#13 38.19

#13 38.19 Import trace for requested module:

#13 38.19 ./components/sidebar/sidebar-content.tsx



#13 38.19 ./components/sidebar/sidebar.tsx

#13 38.19 ./components/ui/dashboard.tsx

#13 38.19 ./app/[locale]/[workspaceid]/layout.tsx



#13 38.19

#13 38.19

#13 38.19 > Build failed because of webpack errors
And I have no idea what to do about it. Of course i can manually fix the source repo... but then the template does not work Somehow railway does not fully clone the git repository. And this is already the 2nd github project I have the issues with. Last time I used LibreChat and not Chatbot-UI. So seems to be a general thing But to answer you more precisely. Only certain things are missing. E.g. the "items" folder is existing. Just not the prompts folder: https://github.com/ai-made-approachable/chatbot-ui-existing-template/tree/main/components/sidebar/items
Brody
Brody•10mo ago
then this isnt cache, something else is going on those prompt files are both a month old
AI made approachable
AI made approachableOP•10mo ago
Maybe. But as a customer only thing I can see is: My github repository is not fully cloned. And that is the reason why it is not working. How should I know what happens "under-the-hood"? I am not cloning the repository myself
Brody
Brody•10mo ago
i dont know whats going on under the hood either
AI made approachable
AI made approachableOP•10mo ago
Not sure you even work for Railway or just help out. But I hope someone creates a ticket for some tech team to check it out
Brody
Brody•10mo ago
i dont work for railway
AI made approachable
AI made approachableOP•10mo ago
Then thx alot for keeping up with me and trying to help 🙂 Hm and great. Looks like I cannot ask for official support on the form without paying more. I think I will look for another cloud provider...
Brody
Brody•10mo ago
quite the drastic reaction if this is an issue with railway we can get team eyes on this, just trying to confirm that fact
AI made approachable
AI made approachableOP•10mo ago
Not sure this is anything:
No description
Brody
Brody•10mo ago
once removed, those files come through
No description
AI made approachable
AI made approachableOP•10mo ago
Thx! Okay, you were right. No railway issue. Why is that in there? Well I learn for next time what to check if I use repositories of other people ... Comes straight from the original repository: https://github.com/mckaywrigley/chatbot-ui/blob/main/.gitignore#L42
Brody
Brody•10mo ago
AI made approachable
AI made approachableOP•10mo ago
Wow, really thanks a lot! I knew about .gitignore files, but did not think about checking it out at all
Brody
Brody•10mo ago
i opened the project up in vscode, it showed me the prompts folder being greyed out
AI made approachable
AI made approachableOP•10mo ago
Ah, right. Yeah should do that in the future I guess.
Brody
Brody•10mo ago
mystery solved
Want results from more Discord servers?
Add your server