[ nuxi 03:54:50] ERROR Nuxt Build Error: [vite:vue] Could not load C:/Users/facun/OneDrive/Im\xE1genes/dialoge.pro/node_modules/.pnpm/@nuxt+ui-pro@3.0.0_@babel+p_feda10ab9a76a4fe03faa6b620efb943/node_modules/@nuxt/ui-pro/dist/runtime/components/prose/Pre.vue?vue&type=style&index=0&lang.css?inline&used: ENOENT: no such file or directory, open 'C:\Users\facun\OneDrive\Im\xE1genes\dialoge.pro\node_modules.pnpm@nuxt+ui-pro@3.0.0_@babel+p_feda10ab9a76a4fe03faa6b620efb943\node_modules@nuxt\ui-pro\dist\runtime\components\prose\Pre.vue'
#build error
6 messages · Page 1 of 1 (latest)
Hi @lament osprey. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
It looks like you're encountering a build error with Nuxt UI Pro, specifically related to the Pre.vue component in the prose components. This error indicates that Vite cannot find the file at the specified path.
This type of error is often related to package installation issues, particularly when using pnpm. Based on the error message, it appears you're using pnpm as your package manager.
Here are some potential solutions:
-
Configure pnpm properly: If you're using pnpm, ensure that you have set
shamefully-hoist=truein your.npmrcfile as mentioned in the Nuxt UI Pro installation documentation. This is required for proper dependency resolution. -
Reinstall dependencies: Try removing your
node_modulesfolder and reinstalling dependencies:rm -rf node_modules pnpm install -
Force upgrade Nuxt: Run the following command to ensure all dependencies are properly installed:
npx nuxi upgrade --forceThis will delete your lockfile and node_modules folder to ensure you get the correct versions, as suggested in a similar context for resolving component conflicts in this Stack Overflow post.
-
Check your imports: Make sure you've properly imported Nuxt UI Pro in your CSS file and added the module to your
nuxt.config.tsas shown in the installation documentation. -
Verify compatibility: Ensure that you're using compatible versions of Nuxt and Nuxt UI Pro. If you're using Nuxt Content, make sure you're using the correct version as mentioned in the Content documentation.
If the issue persists after trying these solutions, you might want to check for any specific error reports or issues in the Nuxt GitHub repository, as this could be related to a known issue that has been fixed in a newer version.
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
@lament osprey Kapa.ai is still learning and improving, please let me know how I did by reacting below.
@lament osprey Can you send more information? A reproduction would be best but otherwise a nuxt.config.ts and a package.json should be good?