I encountered an issue with my Nuxt 3 project that uses the @reown/appkit library. The application runs fine in development mode, and the build completes without errors. However, when I try to run the application in production mode, I get the following error:
Expected Behavior: The application should run without errors in the production environment, just as it does in development mode.
Actual Behavior: The application fails in production mode with the error indicating that the module @reown/appkit cannot be found, even though the build completes successfully.
Link to minimal reproducible example
https://github.com/SPARSEKING/Wallet-Connect/blob/main/app.vue
Summary
I encountered an issue with my Nuxt 3 project that uses the @reown/appkit library. The application runs fine in development mode, and the build completes without errors. However, when I try to run the application in production mode, I get the following error:
Expected Behavior: The application should run without errors in the production environment, just as it does in development mode.
Actual Behavior: The application fails in production mode with the error indicating that the module @reown/appkit cannot be found, even though the build completes successfully.
List of related npm package versions