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

with-ssr Nuxt example does not run

Aperta
#2,300 1 commento 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

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

Direzione di ricerca

Inizia da packages/vue/examples/with-ssr/README e riproduci il problema usando Node v20.11.1 con npm install e npm run dev. Traccia l’errore di esportazione di client isomorphic-dompurify e rivedi i log localhost allegati insieme agli avvisi del server elencati. Il lavoro è completato quando l’esempio Nuxt SSR viene eseguito senza errori lato client o lato server e le faccette funzionano nel browser.

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

Descrizione

bug

Affected Projects
Vue.js/Nuxt

Library Version: x.y.z
3.3.5

Describe the bug
SSR/Nuxt example https://github.com/appbaseio/reactivesearch/tree/next/packages/vue/examples/with-ssr does not work without throwing errors:

Client errors:
vue-router.js?v=ca77ffe0:2698 SyntaxError: The requested module '/_nuxt/node_modules/isomorphic-dompurify/browser.js?v=ca77ffe0' does not provide an export named 'default' (at SearchBox-e655a9ad.js?v=ca77ffe0:20:8)
triggerError @ vue-router.js?v=ca77ffe0:2698
Show 1 more frame
Show less
nuxt.js?v=ca77ffe0:98 [nuxt] error caught during app initialization SyntaxError: The requested module '/_nuxt/node_modules/isomorphic-dompurify/browser.js?v=ca77ffe0' does not provide an export named 'default'
(anonymous) @ nuxt.js?v=ca77ffe0:98
Show 1 more frame
Show less
browser.mjs?v=ca77ffe0:44 error [nuxt] error caught during app initialization SyntaxError: The requested module '/_nuxt/node_modules/isomorphic-dompurify/browser.js?v=ca77ffe0' does not provide an export named 'default'

Server side warnings:
WARN [VueTypes warn]: oneOf - value should be one of "[object Object]", "[object Object]".

WARN [Vue warn]: Invalid prop: custom validator check failed for prop "theme".

WARN [Vue warn]: Property "$emotionCache" was accessed during render but is not defined on instance.

WARN [VueTypes warn]: oneOf - value should be one of "[object Object]", "[object Object]".

WARN [Vue warn]: Invalid prop: custom validator check failed for prop "userThemeProp".

WARN [VueTypes warn]: oneOf - value should be one of "[object Object]", "[object Object]".

WARN [Vue warn]: Invalid prop: custom validator check failed for prop "theme".

WARN [Vue warn]: Property "$emotionCache" was accessed during render but is not defined on instance.

WARN [VueTypes warn]: oneOf - value should be one of "[object Object]", "[object Object]".

WARN [Vue warn]: Invalid prop: custom validator check failed for prop "userThemeProp".

To Reproduce
Using Node v20.11.1

  1. Download files at https://github.com/appbaseio/reactivesearch/tree/next/packages/vue/examples/with-ssr
  2. Follow readme at that location to npm install and npm run dev.

Expected behavior
Unable to use facets in given example in browser or run example without client and server errors.

Screenshots
Screenshot 2024-05-20 at 12 23 11 PM

Desktop (please complete the following information):

  • OS: Sonoma 14.4.1
  • Browser Brave
  • Version v1.65.133

Additional context
localhost-1716204380543.log
localhost-1716204364068.log
localhost-1716204343263.log

Lingua principale
JavaScript
Stelle
4.9k
Fork
479
Merge medio
4h 43m
PR unite (30g)
3

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 appbaseio/reactivesearch

Tutte le issue di appbaseio/reactivesearch

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.