Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Fix carbon ads and nuxt target 'static'

Aperta
#439 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
nuxt
Ambito
frontend

Direzione di ricerca

Inizia da nuxt.config.js e dal ciclo di vita mounted menzionato nel report, quindi confronta il comportamento della build statica con la configurazione attuale dopo #438. Il lavoro è completato quando il sito web generato include lo script Carbon ads nel DOM e gli annunci vengono visualizzati usando target: 'static'.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug
Support plan
  • is this issue currently blocking your project? (yes/no):
  • is this issue affecting a production system? (yes/no):
Context
  • node version:
  • module version with issue:
  • last module version without issue:
  • environment (e.g. node, browser, native):
  • used with (e.g. hapi application, another framework, standalone, ...):
  • any other relevant information:
What are you trying to achieve or the steps to reproduce?
const some = 'properly formatted code example';
What was the result you got?

When building the website using target: 'static' in nuxt.config.js the carbon ads script tag is not added to the DOM hence ads are not showing up.

What result did you expect?

Ads should be displayed. We've removed the target: 'static' for now (#438)

Perhaps the problem comes from the mounted lifecycle which is not triggered when generating the website statically.

Lingua principale
Vue
Stelle
55
Fork
72
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di hapijs/hapi.dev

Tutte le issue di hapijs/hapi.dev

Issue simili

Altre issue su Web Dev

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.