It looks like you're encountering an error when trying to start your Nuxt application. The error message indicates that Nuxt is trying to load a module called ui-pro but can't find it.
This error is related to the Nuxt UI Pro module, which is a premium component library built on top of Nuxt UI. Based on the error, it seems the module is referenced in your configuration but isn't properly installed.
Here's how to fix this issue:
1. Install the Nuxt UI Pro package
First, you need to install the @nuxt/ui-pro package:
npm install @nuxt/ui-pro
pnpm add @nuxt/ui-pro
yarn add @nuxt/ui-pro
bun add @nuxt/ui-pro
If you're using pnpm (which appears to be the case based on your error paths), make sure you have shamefully-hoist=true in your .npmrc file or install tailwindcss in your project's root directory as mentioned in the Nuxt UI Pro installation documentation.
2. Update your nuxt.config.ts file
Make sure your nuxt.config.ts file correctly references the module:
export default defineNuxtConfig({
modules: ['@nuxt/ui-pro'],
css: ['~/assets/css/main.css']
})
3. Set up your CSS file
Create or update your CSS file to import Tailwind CSS and Nuxt UI Pro:
@import "tailwindcss" theme(static);
@import "@nuxt/ui-pro";
4. Wrap your app with the App component
In your app.vue file:
<template>
<UApp>
<NuxtPage />
</UApp>
</template>
The error you're seeing is specifically related to module resolution, which was addressed in recent Nuxt updates as mentioned in this PR and this PR. These updates improved how Nuxt resolves module paths.