-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
asyncData seo Cannot read property '$nuxt' of undefined #5
Comments
{
"author": "shanmukha",
"private": true,
"scripts": {
"dev": "nuxt",
"build": "nuxt build",
"start": "nuxt start",
"generate": "nuxt generate"
},
"dependencies": {
"@nuxtjs/axios": "^5.3.6",
"@nuxtjs/firebase": "^7.6.1",
"@nuxtjs/google-analytics": "^2.4.0",
"@nuxtjs/gtm": "^2.4.0",
"@nuxtjs/robots": "^2.5.0",
"@nuxtjs/sitemap": "^2.4.0",
"@nuxtjs/vercel-builder": "^0.22.1",
"@nuxtjs/vuetify": "^1.11.2",
"algoliasearch": "^4.10.3",
"axios": "^0.21.1",
"babel-eslint": "^10.0.3",
"child_process": "^1.0.2",
"cookie-universal-nuxt": "^2.1.3",
"cookieparser": "^0.1.0",
"firebase": "^8.6.5",
"imagesloaded": "^4.1.4",
"js-cookie": "^2.2.1",
"miro-nuxt-seo": "^1.0.3",
"moment": "^2.26.0",
"nuxt": "^2.13.3",
"nuxt-i18n": "^6.3.0",
"nuxt-jsonld": "^1.5.3",
"nuxt-seo": "^1.5.2",
"nuxt-seo-meta": "^2.3.1",
"prettier": "^1.9.2",
"realm": "^10.6.0",
"realm-web": "^1.3.0",
"sass-loader": "^10.1.1",
"save-dev": "^0.0.1-security",
"search-insights": "^2.0.2",
"vue-apollo": "^3.0.7",
"vue-awesome-swiper": "^3.1.3",
"vue-axios": "^3.2.5",
"vue-images-loaded": "^1.1.2",
"vue-instantsearch": "^3.7.0",
"vue-lazyload": "^1.3.3",
"vue-notification": "^1.3.19",
"vue-server-renderer": "^2.6.14",
"vue-slider-component": "^3.2.13",
"vue-star-rating": "^2.1.0",
"vuelidate": "^0.7.4",
"vuex-persistedstate": "^2.5.4"
},
"devDependencies": {
"@nuxt/types": "~0.7.0",
"@nuxtjs/pwa": "^3.3.5",
"@nuxtjs/style-resources": "^1.0.0",
"webpack": "^4.46.0"
}
} |
I have been looking into this issue. It seems like this is only a problem in newer versions of Nuxt. |
Sure I even check the below code to run in my project. if any page are shared in social media all the meta tags are same as per
|
@srk4393 The nuxt head({ $seo }) {
return $seo({
title: 'new page title',
// description, keywords, etc
});
} I don't think the PS: I just published release [email protected] which fixes the error you described in your first comment |
@srk4393 You might find the nuxt blog example in the docs helpful. It demonstrates using both the |
@nickfrosty Thanks working fine |
@srk4393 Wonderful! |
For SEO in Facebook and Google Search trying to place a as shown below
The text was updated successfully, but these errors were encountered: