Questions tagged [nuxtjs2]

Questions related to Nuxt v2 only. Concerned repo: https://github.com/nuxt/nuxt.js

Questions related to Nuxt v2 only. Concerned repo: https://github.com/nuxt/nuxt.js

39 questions
0
votes
1 answer

Custom environment variables set in Plesk are not avaible for Nuxt.js during build

Nuxt v2.15.8 on Node.js 14.21.1 on Plesk Obsidian 18.0.48 I am trying to make use of environmental variables in the nodejs module of Plesk. But it seems I cannot access the variables during build. I set up a basic nuxt project with: npm init…
Vipa
  • 11
  • 3
0
votes
0 answers

Getting an error when having heuristic fragment matching with Apollo & Nuxt.js

I am trying to connect the below graphql query with nuxtjs. query getContent($slug: String!) { contents (filters: { slug: { eq: $slug } }) { data { id attributes { title content { __typename ...…
dhanushkac
  • 520
  • 2
  • 8
  • 25
0
votes
1 answer

Nuxt 2 - SSG - Embed data in HTML

I saw that Nuxt 2 stores data in json files called payload.js in SSG mode. Instead to store these data in json files, is it possible to store the data directly in HTML files, after the generation ? Thanks
emilie zawadzki
  • 2,035
  • 1
  • 18
  • 25
0
votes
1 answer

What is the difference between 'ssr:false' vs 'target:static' in NuxtJS?

To generate a static site using NuxtJS, it seems there are 2 options to set: ssr:false and target:static inside the NuxtJS config file (nuxt.config.js) which practically do the sme thing? Why both of them exist if they do the same thing? or is there…
MBS
  • 72
  • 7
0
votes
1 answer

getting error "this.renderChart is not a function" or "TypeError: Object(...) is not a function" Chart.js Nuxt v2

i want to use chart.js in my nuxt project which is version ^2.15.7. The issue is that I having these errors in my console when trying to use this plugin in my .vue page. errors: this.renderChart is not a function TypeError: Object(...) is not a…
Arian Fm
  • 314
  • 4
  • 14
0
votes
0 answers

When I refresh the page in Nuxt it throws error atob is not defined

When I navigate to the page through UI, page is rendering fine but when I do refresh the page, it throws the error Reference error atob is not defined. here is my created function on same page . created() { if (typeof window !== 'undefined' &&…
0
votes
1 answer

Nuxt generate failing with self is not defined in a vue dist file

I'm preparing to deploy my first Static app from a Nuxt.js 2 project. While the static routes are generated fine, my dynamic routes are not. Once I remembered they were hidden in my dropdown menu - duhh - I created a /generate page which renders all…
JeremyW
  • 241
  • 1
  • 2
  • 9
0
votes
1 answer

NuxtJS Access installed vue plugin in nuxtjs inject method

I want to install VueToast package as plugin and add global helper methods with nuxt plugin. As shown below I install plugin between 5-11 lines. And I need to access $toast props on line 18. However I cannot access $toast props. How can I access…
Dreamcatcher
  • 798
  • 13
  • 31
-1
votes
1 answer

Is it possible to use google recaptcha on client side without server side support? If possible how?

Currently, I am working on Nuxtjs 2 project in which I have to implement Recaptcha on the client side, I do not want backend support for Recaptcha. I want to handle it only on the front end. How can I do this on the front-end with or without any…
Ali Nawaz
  • 25
  • 5
1 2
3