strapi / strapi-starter-nuxt-blog

Strapi Starter Nuxt Blog
https://strapi.io/blog/build-a-blog-using-nuxt-strapi-and-apollo
MIT License
181 stars 64 forks source link

starter.json error #52

Open Lakelimbo opened 2 years ago

Lakelimbo commented 2 years ago

Sorry if this is a dumb issue, but I found this recently and I've been trying to use the Yarn and NPM commands on README.md, however it always throws an error error: Could not find starter.json in nuxt-blog. I see the starter.json file on the root directory though? I don't really know what is happening here 😛

gvz42-web commented 2 years ago

The same problem

Ideenpionier commented 2 years ago

Same here

kovinet commented 2 years ago

I wanted to install this starter with Strapi 4 but it fails.

rolandschellhorn commented 2 years ago

If you try this command inside your project folder you should try ./ als target. Eg. npx create-strapi-starter my-site ./

Update: git clone git@github.com:strapi/strapi-starter-nuxt-blog.git cd strapi-starter-nuxt-blog npx create-strapi-starter my-site ./

littlebunyip commented 2 years ago

same problem.... tried rolands suggestion. same problem.

littlebunyip commented 2 years ago

Thanks @rolandschellhorn your updated suggestion enables the installation but the starter aspect of the install is not setup. There are none of the blog collection types set up in strapi as per the readme and the nuxt app cannot be launched due to a HTTPerror. I am too much of a hack to work out what's actually happening or to track down the real issue which is why the official way to install this starter is not working.

Maybe it has something to do with the recent v4 upgrade and issues with the api/graphql system being reworked? I cannot follow the official strapi blog post on how to setup a strapi & nuxt blog because the graphql queries don't work anymore or return the data in such a convoluted fashion that I can't read the nested object/array structure. I did say I'm a noob/hack!

rolandschellhorn commented 2 years ago

This Project is indeed messed up - documentation is outdated.
In order to make that work you need to check all the errors and work thru them. So you need to create all the data fields for article, author, category, global, homepage.. and make it public accessible. You can see the data you receive via e.g. http://localhost:1337/api/articles

thedigicraft commented 2 years ago

If you use @rolandschellhorn 's approach and are not seeing the content types and data preloaded, you need to modify the starter.json file because it seems to be pointing at the old repo instead of the npm module.

If your starter.json file looks like this:

{
  "template": "https://github.com/strapi/strapi-template-blog"
}

Change it to this:

{
  "template": {
    "name": "@strapi/template-blog",
    "version": "^1.0.0"
  }
}
gauel commented 2 years ago

Same problem

J2A2B commented 2 years ago

same too

jjaimealeman commented 2 years ago

Got this error :(

screenshot

I guess it's not compatible with node v.17.3.0

BUMMER!

gregpalaci commented 2 years ago

same issue, works fine with the "next.js" example... is react better all the sudden? Say it aint so!