-
Notifications
You must be signed in to change notification settings - Fork 281
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
State error and can't connect to api #105
Comments
Hello @moreplease thanks for reaching out. I wanted to clarify are you getting this error with the most recent version of the project or an older version? Can you show me a screenshot or paste the code of the Vuex module that's causing the error so I can suggest a fix? |
I have the newest files from your github. Just installed it around 20 minutes ago and haven't made any changes. However I'm getting these errors: https://gyazo.com/3e7eda072da541876134983fc825d00a. I've saved permalinks however looks like it can't connect to WP API. |
Hi, your error is related to #52 |
Thanks! I've added vuejs/ on the path like this: https://gyazo.com/03c947f99941bc1d003000dc6545644f and also in settings and don't have any errors in the console. However I don't see any content that is written in Home.vue. |
Hi, I had same errors as you yesterday during my initialization. First, you should add a "/" before all your "vuejs" in the router. Second, go to settings.js and change your API_BASE_PATH to That's what I did to make it work. |
Almost done. However still see some errors in the console: https://gyazo.com/d74d18c49a651b65741b21e6e53edd7e. Here is settings.js file: https://gyazo.com/3eb29a76c43ec5044def2c280879c5bb |
You didnt change your API BASE PATH, as explained in my previous comment |
Hmm, now I see recent posts, but when I click on it, it doesn't display anything and link looks like: API_BASE_PATH: "http://localhost:8888/vuejs/wp-json/wp/v2/" |
Isn't there an error? I needed to add [0] to pageContent, because it didn't work. https://gyazo.com/36b5b116bc7bd8f2aa7b8b2b18fb65dc Does it work for you without [0]? For me pageContent.titlle is undefined. |
I believe this has been resolved as of 106 |
Hi, I'm getting these errors in the console: https://gyazo.com/3e7eda072da541876134983fc825d00a. I'm using mampps and website displays on this link: http://localhost:8888/vuejs/.
I've just cloned your project and used npm install and then npm run watch without any errors.
Any ideas of what can be wrong with it?
The text was updated successfully, but these errors were encountered: