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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nuxt 4 testing #27203

Closed
R0N1n-dev opened this issue May 14, 2024 · 12 comments
Closed

Nuxt 4 testing #27203

R0N1n-dev opened this issue May 14, 2024 · 12 comments

Comments

@R0N1n-dev
Copy link

R0N1n-dev commented May 14, 2024

Environment


  • Operating System: Linux
  • Node Version: v18.16.0
  • Nuxt Version: 3.11.2
  • CLI Version: 3.11.1
  • Nitro Version: 2.9.6
  • Package Manager: npm@9.6.7
  • Builder: -
  • User Config: devtools, future
  • Runtime Modules: -
  • Build Modules: -

Reproduction

Used 'nuxi init' to start a new nuxt 3 project.
Followed Nuxt 4 migration guide from https://nuxt.com/docs/getting-started/upgrade#testing-nuxt-4

Describe the bug

Instead of being taken to home page, am taken to nuxt welcome page.
Screenshot from 2024-05-14 10-10-04
code structure as follows
Screenshot from 2024-05-14 10-10-34

App.vue
Screenshot from 2024-05-14 10-15-50

Additional context

No response

Logs

No response

@rtrap-rsi
Copy link

This could happen if the nuxt version (and dependency) are not correctly installed. Have you delete the package-lock.json before running npm install? The nuxt.config.ts show some type issue (on compatibilityVersion for example)?
Here you could find a working version (I just followed the same steps):
https://stackblitz.com/~/github.com/rtrap-rsi/nuxt-starter-lrhmf1?file=nuxt.config.ts

@R0N1n-dev
Copy link
Author

R0N1n-dev commented May 17, 2024

This could happen if the nuxt version (and dependency) are not correctly installed. Have you delete the package-lock.json before running npm install? The nuxt.config.ts show some type issue (on compatibilityVersion for example)? Here you could find a working version (I just followed the same steps): https://stackblitz.com/~/github.com/rtrap-rsi/nuxt-starter-lrhmf1?file=nuxt.config.ts

Yes. Did that and same thing. Nothing.
The red marking on compatibiltyVersion wont go away
Screenshot from 2024-05-17 07-34-27

@rtrap-rsi
Copy link

rtrap-rsi commented May 17, 2024

I see in the issue description you wrote

Nuxt Version: 3.11.2

It is exactly what you have? It should be npm:nuxt-nightly@latest (that now resolve at something like 3.12.0-hash...)

@danielroe
Copy link
Member

You need to use the nightly release channel to test it. Or wait for the release of v3.12.

@danielroe danielroe closed this as not planned Won't fix, can't repro, duplicate, stale May 18, 2024
@R0N1n-dev
Copy link
Author

Yeah still not working.
Screenshot from 2024-05-21 06-32-40
Screenshot from 2024-05-21 06-32-55

Will just wait.

@rtrap-rsi
Copy link

Removed node modules and package lock and reinstalled after the change?

@R0N1n-dev
Copy link
Author

Removed node modules and package lock and reinstalled after the change?

Yes, I did. TWICE.

@danielroe
Copy link
Member

If you're encountering an issue with the nightly version, please provide a reproduction and I'll happily take a look 🙏

@R0N1n-dev
Copy link
Author

If you're encountering an issue with the nightly version, please provide a reproduction and I'll happily take a look 🙏

https://stackblitz.com/github/R0N1n-dev/nuxt-4-issue

@rtrap-rsi
Copy link

If I remove
"@nuxt/devtools": "^1.3.1",
everything work as expected. It is included in nuxt, why the need to install it manually? Which command did you use it to create the project ? (I used npx nuxi@latest init)

@R0N1n-dev
Copy link
Author

R0N1n-dev commented May 22, 2024

If I remove "@nuxt/devtools": "^1.3.1", everything work as expected. It is included in nuxt, why the need to install it manually? Which command did you use it to create the project ? (I used npx nuxi@latest init)

Screenshot from 2024-05-22 09-33-25
Screenshot from 2024-05-22 09-35-47

Nothing
Screenshot from 2024-05-22 09-33-32

Am done with this. I will wait. It's not worth the headache

Copy link
Member

@R0N1n-dev The reproduction you linked seems fine.

CleanShot 2024-05-22 at 13.16.32@2x.png

My guess is that you are not in fact on the latest version. Try explicitly installing npm:nuxt-nightly@3.12.0-28605073.2e25afdf

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

No branches or pull requests

3 participants