Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect Warning on Nuxt 3.10 #524

Closed
evanlegamer opened this issue Mar 11, 2024 · 4 comments
Closed

Incorrect Warning on Nuxt 3.10 #524

evanlegamer opened this issue Mar 11, 2024 · 4 comments
Labels
bug Something isn't working needs reproduction

Comments

@evanlegamer
Copy link

馃摎 What are you trying to do?

I'm just trying to use Ionic router. It's working correctly but I got an error.

image

馃攳 What have you tried?

I tried to disable pages by putting in nuxt.config.js :

pages: false

everything stop to work correctly, so the advice they give in the warning is incorrect also.

鈩癸笍 Additional context

No response

@maige-app maige-app bot added bug Something isn't working needs reproduction labels Mar 11, 2024
@CHIBX
Copy link
Contributor

CHIBX commented Mar 26, 2024

馃摎 What are you trying to do?

I'm just trying to use Ionic router. It's working correctly but I got an error.

image

馃攳 What have you tried?

I tried to disable pages by putting in nuxt.config.js :

pages: false

everything stop to work correctly, so the advice they give in the warning is incorrect also.

鈩癸笍 Additional context

No response

I tried it too, but I guess the problem is that maybe the Ionic Vue router wasn't made to work without page integration.
Worry not, I will look into it, and see if I can get something out of it, but for now try and work with pages: true

@CHIBX
Copy link
Contributor

CHIBX commented Mar 26, 2024

@evanlegamer I also noticed in the Vue Devtools that Nuxt wraps the base element with NuxtRoot to properly inject helper props which would help in a normal Nuxt 3 application. But when you use the NuxtLayout or NuxtPage in an Ionic app, then problem could start along the way. When you use NuxtLayout with IonRouterView, the browser console should show a warning that a provide() couldn't be found for an inject() in the IonRouterView component. Also, the other way around, if you don't provide the IonApp, then various Ionic default animation and features won't work well

@abarke
Copy link

abarke commented May 7, 2024

I got the same issue. See: nuxt/nuxt#24912 (comment)

@danielroe
Copy link
Collaborator

This is resolved in #560 and will be in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs reproduction
Projects
None yet
Development

No branches or pull requests

4 participants