Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.

example multiple-content-types not work with 404 error #83

Closed
alterhu2020 opened this issue Sep 26, 2017 · 13 comments
Closed

example multiple-content-types not work with 404 error #83

alterhu2020 opened this issue Sep 26, 2017 · 13 comments
Assignees

Comments

@alterhu2020
Copy link

alterhu2020 commented Sep 26, 2017

Environment

OS Version: Windows 7 Enterprise SP1
NodeJS: 8.5.0
NPM: 5.4.2
Nuxt: latest
Nuxtent-module: latest (1.0.0)

Hi team,
It's too sad that I had to say that the example in you official repository still not work for you current latest release version.

Steps to reproduce

  1. Download the example code: https://github.com/nuxt-community/nuxtent-module/tree/master/examples/multiple-content-types
  2. Try command npm install
  3. Try command npm run dev
  4. Open the browser url: http://localhost:3000
  5. Click the link See all my posts

Actual Result

  1. When navigate to the root url :http://localhost:3000, it will show below exception:
[Vue warn]: Method "$delete" conflicts with an existing Vue instance method. Avo
id defining component methods that start with _ or $.

image

  1. When click the link 'See all my posts', it will totally go to 404 page.
GET http://localhost:3000/content-api/posts/? 404 (Not Found)

image

I think it caused by incorrect axios's baseURL setting. could you try it in your side?
thanks.

This question is available on Nuxt.js community (#c72)
@alterhu2020
Copy link
Author

Hi team,
I found the Vue warning had lasted for a long time, but you all had not noticed this .

@alterhu2020 alterhu2020 changed the title example multiple-content-types not work example multiple-content-types not work with 404 error Sep 26, 2017
@medfreeman
Copy link
Contributor

Thanks for reporting this!
It is again a specific windows error.

@alidcastano can you add the project to Appveyor so we can have tested windows builds ?
Thanks

@STnetwork
Copy link

STnetwork commented Sep 26, 2017

@medfreeman I had the same error on CentOS with yarn dev & yarn generate, I don't think it's specific to WIndows.

image

@medfreeman
Copy link
Contributor

medfreeman commented Sep 26, 2017

@STnetwork thanks, i mixed up different testing sessions, and i encountered the same one while running the example on Ubuntu.
I wonder what specific difference produces these warnings.

@alterhu2020
Copy link
Author

@medfreeman , any update for this critical issue , It totally not worked for nuxtent project.

medfreeman added a commit that referenced this issue Sep 27, 2017
@medfreeman
Copy link
Contributor

@alterhu2020 the warnings have now disappeared with the latest commit, they were related to an old @nuxtjs/axios version. I have now updated the module from ^2.2.1 to ^4.3.0 in all examples.

Concerning your error, can you try with the updated examples ?

If it doesn't resolve your problem,
can you tell me if your 'See all my posts' link points to "http://localhost:3000/content-api/posts/?" ?
What is your baseUrl setting ?

@STnetwork
Copy link

STnetwork commented Sep 27, 2017

@medfreeman for me it's resolved with yarn dev & yarn generate.

But ! You should see the process generate, is it normal to have (Browser: /content-api) during the generate process whereas before it was (Browser: /_nuxt/content) ??

image

At the end he doesn't generate all files in the multiple-content example because of this.

I think it's because you replaced nuxtent generate by nuxt generate

@alterhu2020
Copy link
Author

Hi @medfreeman , yes when use the latest @nuxtjs/axios ,the $delete warning had not showed again ,bbut the 404 page is still showing for this example.
The reproduce steps just as this issue's description.
see the error screenshot for this.
image

@STnetwork
Copy link

STnetwork commented Sep 27, 2017

@alterhu2020 @medfreeman
It's probably specific to your env or windows, because I don't have this message on CentOS at all.

image
image

@alidcast
Copy link
Contributor

Why are you visiting content-api/posts/?

What does content-api/posts show?

@STnetwork
Copy link

STnetwork commented Sep 27, 2017

@alidcastano

it should show :

image

@alidcast
Copy link
Contributor

alidcast commented Sep 27, 2017

@STnetwork Thanks for looking into this. It works for me as well so this most be an env specific issue. But I did experience two other issues #88 #89 so we will work to fix them.

Thanks for being patient as we work out the kinks, and a special shoutout to @medfreeman for helping to stabilize nuxtent.

@AlokJoshi
Copy link

@medfreeman I am fairly new to this but I get hundreds of warnings:
[Vue warn]: Method "$delete" conflicts with an existing Vue instance method. Avo
id defining component methods that start with _ or $.
Can you please let me know what may be causing this.?
I am using Windows 7 and I installed the latest nuxt by changing the package.json entry to :"latest" and running npm install. (I think it installed rc11 but I cannot get back to that screen and I don't know how to find out the nuxt version installed)

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

No branches or pull requests

5 participants