reown-com / appkit

The full stack toolkit to build onchain app UX
https://reown.com/appkit
Apache License 2.0
4.89k stars 1.38k forks source link

[bug] Cannot find module '@reown/appkit' during Nuxt 3 build #2997

Open ustasbenj opened 5 days ago

ustasbenj commented 5 days ago

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:

image

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

"@reown/appkit": "^1.0.4",
"@reown/appkit-adapter-wagmi": "^1.0.4",
"@wagmi/core": "^2.13.7",
"@web3modal/wagmi": "^5.1.9",
"nuxt": "^3.13.0",
"viem": "^2.21.15",
H2-won commented 3 hours ago

I'm using Next.js and I'm having the same issue.