NuxtUI: "aliases startsWith is not a function" after upgrade
We have been postponing our NuxtUI upgrades since v2.14.1 because of an issue that's appearing when we get the latest version, but as we're now way behind, we would rather solve the issue (and v2.16.0 is possibly containing a solution for my custom breadcrumb).
We get the following exception when doing a Nuxt build:
aliases[key].startsWith is not a function
All is working fine when NuxtUI is on the older version. Any idea how we could troubleshoot this?
All is working fine when NuxtUI is on the older version. Any idea how we could troubleshoot this?
1 Reply
Been searching for a while and finally found the "solution". It seems the order in which modules are set in NuxtConfig is important for when they're loaded. I put "@nuxt/ui" as the last one in the list and now it loads correctly. Came to that idea by reading about aliases and such... So when someone would encounter the same issue, that's the answer.