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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions