question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can not install Sanity with Nuxt3

See original GitHub issue

I am very new to Sanity and Nuxt. I tried to set it up but get problems shown below. I followed https://sanity.nuxtjs.org/getting-started/quick-start

image

image

image

Here are my deps.

  "devDependencies": {
    "@typescript-eslint/eslint-plugin": "^5.10.0",
    "@typescript-eslint/parser": "^5.10.0",
    "autoprefixer": "^10.4.2",
    "eslint": "^8.7.0",
    "nuxt3": "latest",
    "postcss": "^8.4.5",
    "prettier": "^2.5.1",
    "prettier-plugin-tailwindcss": "^0.1.4"
  },
  "dependencies": {
    "@nuxtjs/composition-api": "^0.31.0",
    "@nuxtjs/sanity": "^1.1.1",
    "@nuxtjs/tailwindcss": "5.0.0-2",
    "@pinia/nuxt": "^0.1.8",
    "eslint-plugin-nuxt": "^3.1.0",
    "pinia": "^2.0.9",
    "sass": "^1.49.0"
  }

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
danielroecommented, Feb 26, 2022

Don’t hesitate to get back in touch if there’s any way I can help.

(You may just need to upgrade nuxt - run npx nuxi upgrade…)

1reaction
danielroecommented, Feb 26, 2022

Here’s a working example: https://stackblitz.com/edit/github-dz5ugi.

It’s not the cause of your problem, but there’s no need to add @pinia/nuxt to your types in your tsconfig.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Connect your content to Nuxt - Sanity.io
Since your content is ultimately just data available through APIs, there's practically no limit to where you can put it! It doesn't even ......
Read more >
Get started with Sanity and Nuxt3 - GitHub
It is used in the Getting started with Sanity guide. Set up. To set up this project locally, you will need to have...
Read more >
@nuxtjs/sanity - npm
Start using @nuxtjs/sanity in your project by running `npm i @nuxtjs/sanity`. There are no other projects in the npm registry using ...
Read more >
Get Started · Nuxt Sanity
Nuxt Sanity. Access text, images, and other media with Nuxt and the Sanity headless CMS. Just bring your sanity.json - no additional configuration...
Read more >
Building with Sanity and Nuxt - YouTube
In the previous lesson, we set up this Nuxt.js application to interface with our Sanity project.What we want to do in this lesson...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found