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

installation issue #1018

Open
MavDavis opened this issue Nov 16, 2022 · 15 comments
Open

installation issue #1018

MavDavis opened this issue Nov 16, 2022 · 15 comments

Comments

@MavDavis
Copy link

Screenshot

Versions

  • nuxt:
  • node:

Reproduction

Additional Details

Steps to reproduce

What is Expected?

What is actually happening?

@MavDavis
Copy link
Author

I have tried installing nuxt like four times tonight and that is the error I keep getting anytime I try running npm run dev

Copy link
Member

try setting the nuxt version in your package.json to 2 - I suspect you're pulling in Nuxt 3, which has just been released, along with a module that's not compatible with nuxt 3.

@danielroe danielroe transferred this issue from nuxt/nuxt Nov 16, 2022
@danielroe
Copy link
Member

cc: @clarkdo

@clarkdo
Copy link
Member

clarkdo commented Nov 16, 2022

As @danielroe said, create-nuxt-app doesn’t support nuxt.js v3 and I think nuxi init is the best way to initialize nuxt v3 application.

I’ll also make fix to have better prompt when packages are not compatible.

@pi0 @danielroe please correct me if I misunderstood anything or I’m wrong.

@MavDavis
Copy link
Author

what is the full command when using nuxi to create a nuxt app @clarkdo

@MavDavis
Copy link
Author

Ain't they suppose to modify the docs tho cos the process for the installation was from the official nuxt docs

@MavDavis
Copy link
Author

'nuxi' is not recognized as an internal or external command,
operable program or batch file

I have never used nuxi, any help?

@clarkdo
Copy link
Member

clarkdo commented Nov 17, 2022

Please follow nuxt v3 doc, https://nuxt.com/docs/getting-started/installation#new-project

@MavDavis
Copy link
Author

Screenshot
So
I used npx nuxi init app to create another app and this is the error I get running npm run dev

@MavDavis
Copy link
Author

Please what's the best way of installing a nuxt app and which version is recommendable( (I will appreciate a version that allows auto import)? I have tried so many methods and it will end up giving an error.

Copy link
Member

danielroe commented Nov 18, 2022

@MavDavis - the best way to install a new Nuxt app is to follow the instructions to get started with Nuxt 3 at https://nuxt.com/docs/getting-started/installation.

@mrsalitre
Copy link

You can follow the instructions to get started with Nuxt 3 at https://nuxt.com/docs/getting-started/installation.

Isn't that the way to start a project with nuxt 3? Then it does not work for this repository, I just followed the instructions to start a project with nuxt 2 and I had exactly the same problem as this issue.

The installed version of nuxt is version 2.

@mrsalitre
Copy link

@MavDavis try to do a fresh install of nuxt2 with out extra plugins, specially tailwind, if you need tailwind use this version instead https://www.npmjs.com/package/@nuxtjs/tailwindcss/v/4.0.0-12

@Myzwer
Copy link

Myzwer commented Nov 20, 2022

My project was already live and throwing started this error, but downgrading @nuxtjs/tailwindcss to 4.2.1 fixed the issue for anyone else struggling with it.

@Abdul-Rafay-2002
Copy link

Nuxt issue

Same issue for my side. if I uninstall the Tailwind plugin the project is through some more errors.

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

6 participants