Skip to content

fix: Built application not working #425

Description

@jakubkoje

🐛 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

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions