NuxtN
Nuxt10mo ago
19 replies
erztemplerobba

Cannot compile template (components) after migration from Nuxt UI Pro v1 to v3.

ERROR  Could not compile template ui-pro/banner.ts.                                                     nuxt 22:59:41  
 ERROR  Cannot read properties of undefined (reading 'theme')

 ERROR  Could not compile template ui-pro/blog-post.ts.                                                                                                                                                            nuxt 22:59:41  
 ERROR  Cannot read properties of undefined (reading 'theme') 

... more errors like this


getting these errors for many nuxt ui pro components. I followed the migration steps outlined here: https://ui.nuxt.com/getting-started/migration
but I still keep getting the errors. I upgraded tailwind, installed "@nuxt/ui-pro": "^3.0.2", and updated all files as shown in the migration doc.
Nuxt UI
A comprehensive guide to migrate your application from Nuxt UI v2 to Nuxt UI v3.
Migration - Nuxt UI
Was this page helpful?