#Nuxt module builder : Unable to Prepare / Prepack
3 messages · Page 1 of 1 (latest)
Based on the information provided in your question, it appears you're encountering an error while trying to prepare and prepack a Nuxt module you're working on. This error occurs after upgrading various Nuxt-related dependencies, including Nuxt itself to version 3.14.159.
The error message "Cannot convert object to primitive value" suggests there might be an incompatibility or issue with one of the dependencies or configurations in your project. However, I don't have enough specific information in the provided knowledge sources to pinpoint the exact cause of this error.
Here are a few suggestions that might help:
-
Check compatibility: Ensure that all the dependencies you've upgraded are compatible with each other and with Nuxt 3.14.159. Sometimes, very recent versions can have unexpected issues.
-
Rollback Nuxt version: Try rolling back to a stable version of Nuxt, such as 3.13.x or 3.12.x, to see if the issue persists.
-
Clear cache and reinstall: Try clearing your project's cache, removing the
node_modulesfolder, and reinstalling dependencies. -
Run
nuxi prepare: As mentioned in the Nuxt documentation (https://nuxt.com/docs/api/commands/prepare), you can try runningnpx nuxi prepareto regenerate your.nuxtdirectory and types. -
Check for any recent issues: Look for any recent issues reported in the Nuxt GitHub repository (https://github.com/nuxt/nuxt) that might be related to your problem.
If the issue persists after trying these steps, you may want to create a minimal reproduction of the problem and seek help from the Nuxt community or file an issue on the Nuxt GitHub repository.
Remember to always back up your project before making significant changes or upgrades.
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
@sacred mango Kapa.ai is still learning and improving, please let me know how I did by reacting below.