504 Outdated Optimize Depth when adding any UI library
I've tested this with several libraries (primarily next ui and chakra)
The error itself points to vite (it points to the .vite/<ui library> directory of node modules), but I've reinstalled all deps and npm cache multiple times and done hard resets on chrome.
Testing on chrome using wasp 0.11.8
5 Replies
Wohooo @CamBlackwood, you just became a Waspeteer level 1!
Hi @CamBlackwood. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
Hmm, I don't know enough to give you a confident answer yet. The knowledge sources provided do not contain specific information about the error "504 Outdated Optimize Depth" when adding UI libraries in Wasp.
However, it's worth noting that some community members have reported difficulties with certain UI libraries, such as Shadcn, but have had success with others like NextUI and Chakra UI source (https://discord.com/channels/686873244791210014/1204418933927448657).
Also, Wasp uses Vite for serving the client during development and bundling it for production. If you want to customize the Vite config, you can do that by editing the
vite.config.ts
file in your project root directory source (https://wasp-lang.dev/docs/project/custom-vite-config).
For more specific help, I would recommend reaching out to the Wasp community or checking the official Wasp documentation.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
Sorry @CamBlackwood, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist:
Perhaps try again in 15mins?Could you try using a newer Wasp version? We are at 0.13.2 now and the error might disappear.
If for some reason this is not an option for you, let me know and I’ll try debugging this with Wasp 0.11.8 tomorrow
@miho Can confirm the update fixed the issue. Thank you!
Noice 🙏