🐛 The bug
I create a fresh nuxt app, install ionic module and create an empty index.vue page with ion-page and ion-content inside. After that, I run pnpm generate. If I try to visit the built site using http-server, I receive this error:
[nuxt] error caught during app initialization TypeError: Cannot read properties of undefined (reading 'beforeResolve').
pnpm dev and pnpm build works without problem when served.
This issue prevents me from building a working native app using capacitor.
🛠️ To reproduce
https://github.com/jakubkoje/nuxt-ionic-reproduction
🌈 Expected behaviour
I should be able to serve the built app using http server and also run it in capacitor on device
ℹ️ Additional context
No response
🐛 The bug
I create a fresh nuxt app, install ionic module and create an empty index.vue page with ion-page and ion-content inside. After that, I run pnpm generate. If I try to visit the built site using http-server, I receive this error:
[nuxt] error caught during app initialization TypeError: Cannot read properties of undefined (reading 'beforeResolve').pnpm dev and pnpm build works without problem when served.
This issue prevents me from building a working native app using capacitor.
🛠️ To reproduce
https://github.com/jakubkoje/nuxt-ionic-reproduction
🌈 Expected behaviour
I should be able to serve the built app using http server and also run it in capacitor on device
ℹ️ Additional context
No response